mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-13 00:00:00 -04:00
[PATCH] GTOD: persistent clock support
Persistent clock support: do proper timekeeping across suspend/resume. [bunk@stusta.de: cleanup] Signed-off-by: John Stultz <johnstul@us.ibm.com> Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Signed-off-by: Ingo Molnar <mingo@elte.hu> Cc: Roman Zippel <zippel@linux-m68k.org> Cc: Adrian Bunk <bunk@stusta.de> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
9f907c0144
commit
411187fb05
4 changed files with 50 additions and 1 deletions
|
|
@ -291,6 +291,14 @@ static unsigned long ktime_divns(const ktime_t kt, s64 div)
|
|||
# define ktime_divns(kt, div) (unsigned long)((kt).tv64 / (div))
|
||||
#endif /* BITS_PER_LONG >= 64 */
|
||||
|
||||
/*
|
||||
* Timekeeping resumed notification
|
||||
*/
|
||||
void hrtimer_notify_resume(void)
|
||||
{
|
||||
clock_was_set();
|
||||
}
|
||||
|
||||
/*
|
||||
* Counterpart to lock_timer_base above:
|
||||
*/
|
||||
|
|
|
|||
Loading…
Reference in a new issue