time: create __getnstimeofday for WARNless calls
authorKees Cook <keescook@chromium.org>
Mon, 19 Nov 2012 18:26:16 +0000 (10:26 -0800)
committerJohn Stultz <john.stultz@linaro.org>
Wed, 16 Jan 2013 02:16:02 +0000 (18:16 -0800)
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>

No differences found