瀏覽代碼

clocksource: revert: use init_timer_deferrable for clocksource_watchdog

Revert

commit 1077f5a917b7c630231037826b344b2f7f5b903f
Author: Parag Warudkar <parag.warudkar@gmail.com>
Date:   Wed Jan 30 13:30:01 2008 +0100

    clocksource.c: use init_timer_deferrable for clocksource_watchdog
    
    clocksource_watchdog can use a deferrable timer - reduces wakeups from
    idle per second.

The watchdog timer needs to run with the specified interval. Otherwise
it will miss the possible wrap of the watchdog clocksource.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: stable@kernel.org
Thomas Gleixner 17 年之前
父節點
當前提交
898a19de15
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      kernel/time/clocksource.c

+ 1 - 1
kernel/time/clocksource.c

@@ -174,7 +174,7 @@ static void clocksource_check_watchdog(struct clocksource *cs)
 			if (watchdog)
 			if (watchdog)
 				del_timer(&watchdog_timer);
 				del_timer(&watchdog_timer);
 			watchdog = cs;
 			watchdog = cs;
-			init_timer_deferrable(&watchdog_timer);
+			init_timer(&watchdog_timer);
 			watchdog_timer.function = clocksource_watchdog;
 			watchdog_timer.function = clocksource_watchdog;
 
 
 			/* Reset watchdog cycles */
 			/* Reset watchdog cycles */