summaryrefslogtreecommitdiffstats
path: root/kernel/time
diff options
context:
space:
mode:
authorParag Warudkar <parag.warudkar@gmail.com>2008-01-30 13:30:01 +0100
committerIngo Molnar <mingo@elte.hu>2008-01-30 13:30:01 +0100
commit1077f5a917b7c630231037826b344b2f7f5b903f (patch)
treee0083b73450d513b16d0f5c0704ad49961dce401 /kernel/time
parentefd9ac8630e89b9ee7ce64008bd7783952374f37 (diff)
downloadop-kernel-dev-1077f5a917b7c630231037826b344b2f7f5b903f.zip
op-kernel-dev-1077f5a917b7c630231037826b344b2f7f5b903f.tar.gz
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')
-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 8d6125a..cabfa19 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 */
OpenPOWER on IntegriCloud