Skip to content

Commit 95f3b1f

Browse files
committed
Merge branch 'timers-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
Pull timer fix from Thomas Gleixner: "A simple fix to actually shut down a detached device instead of keeping it active" * 'timers-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip: clockevents: Shutdown detached clockevent device
2 parents 1a9f064 + 149aabc commit 95f3b1f

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

kernel/time/clockevents.c

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -117,11 +117,7 @@ static int __clockevents_set_state(struct clock_event_device *dev,
117117
/* Transition with new state-specific callbacks */
118118
switch (state) {
119119
case CLOCK_EVT_STATE_DETACHED:
120-
/*
121-
* This is an internal state, which is guaranteed to go from
122-
* SHUTDOWN to DETACHED. No driver interaction required.
123-
*/
124-
return 0;
120+
/* The clockevent device is getting replaced. Shut it down. */
125121

126122
case CLOCK_EVT_STATE_SHUTDOWN:
127123
return dev->set_state_shutdown(dev);

0 commit comments

Comments
 (0)