diff options
author | Arnd Bergmann <arnd@arndb.de> | 2016-08-03 00:03:22 +0300 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2016-08-03 00:31:41 +0300 |
commit | 519ded5a89ec0e46e5b0867ba9f5752239b73898 (patch) | |
tree | 59af01944e5b0abfe24e9b8cdf619f7875f7a08a /drivers/watchdog | |
parent | ef419398b68925f21fd3d8463c7bf6934d2ec926 (diff) | |
download | linux-519ded5a89ec0e46e5b0867ba9f5752239b73898.tar.xz |
procfs: avoid 32-bit time_t in /proc/*/stat
/proc/stat shows (among lots of other things) the current boottime (i.e.
number of seconds since boot). While a 32-bit number is sufficient for
this particular case, we want to get rid of the 'struct timespec'
suffers from a 32-bit overflow in 2038.
This changes the code to use a struct timespec64, which is known to be
safe in all cases.
Link: http://lkml.kernel.org/r/20160617201247.2292101-1-arnd@arndb.de
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/watchdog')
0 files changed, 0 insertions, 0 deletions