aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/time/clocksource.c
diff options
context:
space:
mode:
authorParag Warudkar <parag.warudkar@gmail.com>2008-01-30 07:30:01 -0500
committerIngo Molnar <mingo@elte.hu>2008-01-30 07:30:01 -0500
commit1077f5a917b7c630231037826b344b2f7f5b903f (patch)
treee0083b73450d513b16d0f5c0704ad49961dce401 /kernel/time/clocksource.c
parentefd9ac8630e89b9ee7ce64008bd7783952374f37 (diff)
clocksource.c: use init_timer_deferrable for clocksource_watchdog
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>
Diffstat (limited to 'kernel/time/clocksource.c')
-rw-r--r--kernel/time/clocksource.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/time/clocksource.c b/kernel/time/clocksource.c
index 8d6125ad2cf0..cabfa193efb3 100644
--- a/kernel/time/clocksource.c
+++ b/kernel/time/clocksource.c
@@ -175,7 +175,7 @@ static void clocksource_check_watchdog(struct clocksource *cs)
175 if (watchdog) 175 if (watchdog)
176 del_timer(&watchdog_timer); 176 del_timer(&watchdog_timer);
177 watchdog = cs; 177 watchdog = cs;
178 init_timer(&watchdog_timer); 178 init_timer_deferrable(&watchdog_timer);
179 watchdog_timer.function = clocksource_watchdog; 179 watchdog_timer.function = clocksource_watchdog;
180 180
181 /* Reset watchdog cycles */ 181 /* Reset watchdog cycles */