Message ID | BANLkTi=p_i0nsLWO_6Y06dw_UJyeo0ygxA@mail.gmail.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
diff --git a/kernel/time/clockevents.c b/kernel/time/clockevents.c index c027d4f..aa664f4 100644 --- a/kernel/time/clockevents.c +++ b/kernel/time/clockevents.c @@ -182,7 +182,11 @@ void clockevents_register_device(struct clock_event_device *dev) unsigned long flags; BUG_ON(dev->mode != CLOCK_EVT_MODE_UNUSED); +#ifdef CONFIG_SMP BUG_ON(!dev->cpumask); +#else + dev->cpumask = cpumask_of(0); +#endif raw_spin_lock_irqsave(&clockevents_lock, flags);