Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 64983
b: refs/heads/master
c: 31d9b39
h: refs/heads/master
i:
  64981: ed183f7
  64979: 25fce10
  64975: 5048947
v: v3
  • Loading branch information
Thomas Gleixner authored and Thomas Gleixner committed Sep 16, 2007
1 parent 172399d commit c342b4e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 07eec6af448d13a6a520d9c6f06f2e87f61b567a
refs/heads/master: 31d9b3938c0459e5e9755ce0a98ac1e24eeff972
11 changes: 4 additions & 7 deletions trunk/kernel/time/tick-broadcast.c
Original file line number Diff line number Diff line change
Expand Up @@ -560,20 +560,17 @@ void tick_broadcast_switch_to_oneshot(void)
*/
void tick_shutdown_broadcast_oneshot(unsigned int *cpup)
{
struct clock_event_device *bc;
unsigned long flags;
unsigned int cpu = *cpup;

spin_lock_irqsave(&tick_broadcast_lock, flags);

bc = tick_broadcast_device.evtdev;
/*
* Clear the broadcast mask flag for the dead cpu, but do not
* stop the broadcast device!
*/
cpu_clear(cpu, tick_broadcast_oneshot_mask);

if (tick_broadcast_device.mode == TICKDEV_MODE_ONESHOT) {
if (bc && cpus_empty(tick_broadcast_oneshot_mask))
clockevents_set_mode(bc, CLOCK_EVT_MODE_SHUTDOWN);
}

spin_unlock_irqrestore(&tick_broadcast_lock, flags);
}

Expand Down

0 comments on commit c342b4e

Please sign in to comment.