* [PATCH] clockevents: make register functions work on UP
@ 2011-06-01 8:49 Linus Walleij
0 siblings, 0 replies; only message in thread
From: Linus Walleij @ 2011-06-01 8:49 UTC (permalink / raw)
To: linux-arm-kernel
On UP systems the clkevt->cpumask is not required, and so as to
avoid ifdef:ing it out of the struct on UP, we remove the mask
warning on UP and force the mask to CPU0 for consistency.
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
---
kernel/time/clockevents.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
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);
--
1.7.3.2
Yours,
Linus Walleij
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2011-06-01 8:49 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-06-01 8:49 [PATCH] clockevents: make register functions work on UP Linus Walleij
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).