Skip to content

Commit

Permalink
clocksource: revert: use init_timer_deferrable for clocksource_watchdog
Browse files Browse the repository at this point in the history
Revert

commit 1077f5a
Author: Parag Warudkar <[email protected]>
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 <[email protected]>
Cc: [email protected]
  • Loading branch information
KAGA-KOKO committed Mar 25, 2008
1 parent a4083c9 commit 898a19d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kernel/time/clocksource.c
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ static void clocksource_check_watchdog(struct clocksource *cs)
if (watchdog)
del_timer(&watchdog_timer);
watchdog = cs;
init_timer_deferrable(&watchdog_timer);
init_timer(&watchdog_timer);
watchdog_timer.function = clocksource_watchdog;

/* Reset watchdog cycles */
Expand Down

0 comments on commit 898a19d

Please sign in to comment.