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

2015-02-15 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

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

2015-02-15 Thread Xunlei Pang
From: Xunlei Pang pang.xun...@linaro.org 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