aboutsummaryrefslogtreecommitdiff
path: root/kernel/power/hibernate.c
diff options
context:
space:
mode:
authorAbhilash Jindal2016-01-31 14:29:01 -0500
committerRafael J. Wysocki2016-02-11 11:10:43 +0100
commitf7b382b988233b5851eddf4531651ffe4133e88c (patch)
tree31447bb17cddd7cdcda6ec6d69c3a7cea6d00170 /kernel/power/hibernate.c
parentf97238373b8662a6d580e204df2e7bcbfa43e27a (diff)
PM/freezer: y2038, use boottime to compare tstamps
Wall time obtained from do_gettimeofday gives 32 bit timeval which can only represent time until January 2038. This patch moves to ktime_t, a 64-bit time. Also, wall time is susceptible to sudden jumps due to user setting the time or due to NTP. Boot time is constantly increasing time better suited for subtracting two timestamps. Signed-off-by: Abhilash Jindal <klock.android@gmail.com> Acked-by: Pavel Machek <pavel@ucw.cz> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'kernel/power/hibernate.c')
0 files changed, 0 insertions, 0 deletions