[prev in list] [next in list] [prev in thread] [next in thread] 

List:       linux-pm
Subject:    Re: [PATCH] PM/freezer: y2038, use boottime to compare tstamps
From:       Pavel Machek <pavel () ucw ! cz>
Date:       2016-01-31 19:42:55
Message-ID: 20160131194255.GA31180 () amd
[Download RAW message or body]

On Sun 2016-01-31 14:29:01, Abhilash Jindal wrote:
> 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 <pavel@ucw.cz>

									Pavel
-- 
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
--
To unsubscribe from this list: send the line "unsubscribe linux-pm" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic