Files
i2som-imx-linux/drivers/rtc
Arve Hjønnevåg df9490f1a5 rtc: Fix some bugs that allowed accumulating time drift in suspend/resume
commit 6a8943d9ec upstream.

The current code checks if abs(delta_delta.tv_sec) is greater or
equal to two before it discards the old delta value, but this can
trigger at close to -1 seconds since -1.000000001 seconds is stored
as tv_sec -2 and tv_nsec 999999999 in a normalized timespec.

rtc_resume had an early return check if the rtc value had not changed
since rtc_suspend. This effectivly stops time for the duration of the
short sleep. Check if sleep_time is positive after all the adjustments
have been applied instead since this allows the old_system adjustment
in rtc_suspend to have an effect even for short sleep cycles.

Signed-off-by: Arve Hjønnevåg <arve@android.com>
Signed-off-by: John Stultz <john.stultz@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2011-12-09 08:55:51 -08:00
..
2011-06-01 19:29:39 -07:00
2011-05-26 17:12:33 -07:00
2011-08-26 17:26:35 -07:00
2011-05-26 17:12:33 -07:00
2011-05-26 17:12:33 -07:00