Thread (11 messages) 11 messages, 5 authors, 2011-06-02
DORMANTno replies

[PATCH 3/3] mach-u300: cleanup clockevent code

From: Thomas Gleixner <hidden>
Date: 2011-06-02 10:29:05
Subsystem: high-resolution timers, timer wheel, clockevents, the rest · Maintainers: Anna-Maria Behnsen, Frederic Weisbecker, Thomas Gleixner, Linus Torvalds

On Thu, 2 Jun 2011, Thomas Gleixner wrote:
On Wed, 1 Jun 2011, Stephen Boyd wrote:

Need to check that.
quoted
runtime?
It's pretty simple and thanks for pointing it out!
diff --git a/kernel/time/clockevents.c b/kernel/time/clockevents.c
index c027d4f..e4c699d 100644
--- a/kernel/time/clockevents.c
+++ b/kernel/time/clockevents.c
@@ -182,7 +182,10 @@ void clockevents_register_device(struct clock_event_device *dev)
 	unsigned long flags;
 
 	BUG_ON(dev->mode != CLOCK_EVT_MODE_UNUSED);
-	BUG_ON(!dev->cpumask);
+	if (!dev->cpumask) {
+		WARN_ON(num_possible_cpus() > 1);
+		dev->cpumask = cpumask_of(smp_processor_id());
+	}
 
 	raw_spin_lock_irqsave(&clockevents_lock, flags);
 
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help