[PATCH] Time: Use clocksource infrastructure for update_wall_time
Modify the update_wall_time function so it increments time using the
clocksource abstraction instead of jiffies. Since the only clocksource driver
currently provided is the jiffies clocksource, this should result in no
functional change. Additionally, a timekeeping_init and timekeeping_resume
function has been added to initialize and maintain some of the new timekeping
state.
[hirofumi@mail.parknet.co.jp: fixlet]
Signed-off-by: John Stultz <johnstul@us.ibm.com>
Signed-off-by: OGAWA Hirofumi <hirofumi@mail.parknet.co.jp>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
diff --git a/kernel/time/clocksource.c b/kernel/time/clocksource.c
index 95dd220..4288bfa 100644
--- a/kernel/time/clocksource.c
+++ b/kernel/time/clocksource.c
@@ -56,7 +56,7 @@
*
* Hack to avoid lots of clocksource churn at boot time
*/
-static int clocksource_done_booting(void)
+static int __init clocksource_done_booting(void)
{
finished_booting = 1;
return 0;
@@ -289,7 +289,7 @@
.cls = &clocksource_sysclass,
};
-static int init_clocksource_sysfs(void)
+static int __init init_clocksource_sysfs(void)
{
int error = sysdev_class_register(&clocksource_sysclass);