Re: [PATCH v5 2/4] time: Fix a bug in timekeeping_suspend() with no persistent clock

2015-03-18 Thread John Stultz
On Sun, Mar 8, 2015 at 11:27 PM, Xunlei Pang wrote: > From: Xunlei Pang > > When there's no persistent clock, normally timekeeping_suspend_time > should always be zero, but this can break in timekeeping_suspend(). > > At T1, there was a system suspend, so old_delta was assigned T1. > After some t

[PATCH v5 2/4] time: Fix a bug in timekeeping_suspend() with no persistent clock

2015-03-08 Thread Xunlei Pang
From: Xunlei Pang When there's no persistent clock, normally timekeeping_suspend_time should always be zero, but this can break in timekeeping_suspend(). At T1, there was a system suspend, so old_delta was assigned T1. After some time, one time adjustment happened, and xtime got the value of T1-