diff options
author | Kees Cook <keescook@chromium.org> | 2012-11-19 19:26:16 +0100 |
---|---|---|
committer | John Stultz <john.stultz@linaro.org> | 2013-01-16 03:16:02 +0100 |
commit | 1e817fb62cd185a2232ad4302579491805609489 (patch) | |
tree | d4155fb65a9fb32cd9236405a8b7534f39c293b9 /kernel/time/tick-broadcast.c | |
parent | Merge branch 'fortglx/3.8/time' of git://git.linaro.org/people/jstultz/linux ... (diff) | |
download | linux-1e817fb62cd185a2232ad4302579491805609489.tar.xz linux-1e817fb62cd185a2232ad4302579491805609489.zip |
time: create __getnstimeofday for WARNless calls
The pstore RAM backend can get called during resume, and must be defensive
against a suspended time source. Expose getnstimeofday logic that returns
an error instead of a WARN. This can be detected and the timestamp can
be zeroed out.
Reported-by: Doug Anderson <dianders@chromium.org>
Cc: John Stultz <johnstul@us.ibm.com>
Cc: Anton Vorontsov <anton.vorontsov@linaro.org>
Signed-off-by: Kees Cook <keescook@chromium.org>
Signed-off-by: John Stultz <john.stultz@linaro.org>
Diffstat (limited to 'kernel/time/tick-broadcast.c')
0 files changed, 0 insertions, 0 deletions