* 'timers-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip: clockevent: Don't remove broadcast device when cpu is dead
Showing the changes to kernel (1 of 1 file). Show all
Unified · Split
| @@ -259,7 +259,8 @@ void clockevents_notify(unsigned long reason, void *arg) · 258 unmodified lines | |||
| 259 | cpu = *((int *)arg); | 259 | cpu = *((int *)arg); |
| 260 | list_for_each_entry_safe(dev, tmp, &clockevent_devices, list) { | 260 | list_for_each_entry_safe(dev, tmp, &clockevent_devices, list) { |
| 261 | if (cpumask_test_cpu(cpu, dev->cpumask) && | 261 | if (cpumask_test_cpu(cpu, dev->cpumask) && |
| 262 | cpumask_weight(dev->cpumask) == 1) { | 262 | cpumask_weight(dev->cpumask) == 1 && |
| 263 | !tick_is_broadcast_device(dev)) { | ||
| 263 | BUG_ON(dev->mode != CLOCK_EVT_MODE_UNUSED); | 264 | BUG_ON(dev->mode != CLOCK_EVT_MODE_UNUSED); |
| 264 | list_del(&dev->list); | 265 | list_del(&dev->list); |
| 265 | } | 266 | } |