]> err.no Git - linux-2.6/commitdiff
clocksource.c: use init_timer_deferrable for clocksource_watchdog
authorParag Warudkar <parag.warudkar@gmail.com>
Wed, 30 Jan 2008 12:30:01 +0000 (13:30 +0100)
committerIngo Molnar <mingo@elte.hu>
Wed, 30 Jan 2008 12:30:01 +0000 (13:30 +0100)
clocksource_watchdog can use a deferrable timer - reduces wakeups from
idle per second.

Signed-off-by: Parag Warudkar <parag.warudkar@gmail.com>
Cc: john stultz <johnstul@us.ibm.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
kernel/time/clocksource.c

index 8d6125ad2cf0cf3c76368e582d9750066d176232..cabfa193efb34ea436dcf04618824236a6f8c450 100644 (file)
@@ -175,7 +175,7 @@ static void clocksource_check_watchdog(struct clocksource *cs)
                        if (watchdog)
                                del_timer(&watchdog_timer);
                        watchdog = cs;
-                       init_timer(&watchdog_timer);
+                       init_timer_deferrable(&watchdog_timer);
                        watchdog_timer.function = clocksource_watchdog;
 
                        /* Reset watchdog cycles */