Patchwork clockevent: don't remove broadcast device when cpu is dead

login
register
mail settings
Submitter Xiaotian Feng
Date Jan. 7, 2010, 3:22 a.m.
Message ID <1262834564-13033-1-git-send-email-dfeng@redhat.com>
Download mbox | patch
Permalink /patch/71537/
State New, archived
Headers show

Comments

Patch

diff --git a/kernel/time/clockevents.c b/kernel/time/clockevents.c
index 6f740d9..0223d83 100644
--- a/kernel/time/clockevents.c
+++ b/kernel/time/clockevents.c
@@ -259,7 +259,7 @@  void clockevents_notify(unsigned long reason, void *arg)
 		cpu = *((int *)arg);
 		list_for_each_entry_safe(dev, tmp, &clockevent_devices, list) {
 			if (cpumask_test_cpu(cpu, dev->cpumask) &&
-			    cpumask_weight(dev->cpumask) == 1) {
+			    !tick_is_broadcast_device(dev)) {
 				BUG_ON(dev->mode != CLOCK_EVT_MODE_UNUSED);
 				list_del(&dev->list);
 			}