]> git.baikalelectronics.ru Git - kernel.git/commit
clocksource: introduce clocksource_forward_now()
authorRoman Zippel <zippel@linux-m68k.org>
Wed, 20 Aug 2008 23:37:28 +0000 (16:37 -0700)
committerIngo Molnar <mingo@elte.hu>
Thu, 21 Aug 2008 07:50:24 +0000 (09:50 +0200)
commit38d7dc0f41490ce242d2ff869bf24e4df8b70b31
treea822607ebb46491e3b480d11c136c5bc8585e38c
parent9dbac80a8778ee70880868114349ca7c3fefc307
clocksource: introduce clocksource_forward_now()

To keep the raw monotonic patch simple first introduce
clocksource_forward_now(), which takes care of the offset since the last
update_wall_time() call and adds it to the clock, so there is no need
anymore to deal with it explicitly at various places, which need to make
significant changes to the clock.

This is also gets rid of the timekeeping_suspend_nsecs, instead of
waiting until resume, the value is accumulated during suspend. In the end
there is only a single user of __get_nsec_offset() left, so I integrated
it back to getnstimeofday().

Signed-off-by: Roman Zippel <zippel@linux-m68k.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
kernel/time/timekeeping.c