From: Parag Warudkar Date: Wed, 30 Jan 2008 12:30:01 +0000 (+0100) Subject: clocksource.c: use init_timer_deferrable for clocksource_watchdog X-Git-Tag: v2.6.25-rc1~1143^2~882 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1077f5a917b7c630231037826b344b2f7f5b903f;p=linux-2.6 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 Cc: john stultz Signed-off-by: Andrew Morton Signed-off-by: Ingo Molnar Signed-off-by: Thomas Gleixner --- diff --git a/kernel/time/clocksource.c b/kernel/time/clocksource.c index 8d6125ad2c..cabfa193ef 100644 --- a/kernel/time/clocksource.c +++ b/kernel/time/clocksource.c @@ -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 */