Re: [PATCH] PM/freezer: y2038, use boottime to compare tstamps
From: Rafael J. Wysocki <hidden>
Date: 2016-02-21 17:45:13
From: Rafael J. Wysocki <hidden>
Date: 2016-02-21 17:45:13
On Sunday, January 31, 2016 08:42:55 PM Pavel Machek wrote:
On Sun 2016-01-31 14:29:01, Abhilash Jindal wrote:quoted
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.Umm. Setting time while we are freezeing is probably not going to be a problem, but ok, why not... Code is simpler as well, and 2038 is coming ;-). Acked-by: Pavel Machek <redacted>
Queued up for 4.6, thanks! Rafael