From mboxrd@z Thu Jan 1 00:00:00 1970 From: tglx@linutronix.de (Thomas Gleixner) Date: Wed, 1 Jun 2011 10:34:46 +0200 (CEST) Subject: [PATCH 3/3] mach-u300: cleanup clockevent code In-Reply-To: References: <1306876145-6778-1-git-send-email-linus.walleij@stericsson.com> Message-ID: To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org On Wed, 1 Jun 2011, Linus Walleij wrote: > 2011/5/31 Thomas Gleixner : > > On Tue, 31 May 2011, Linus Walleij wrote: > >> From: Linus Walleij > >> > >> Use the new clockevents_config_and_register() function to register > >> the U300 clockevent, since that code requires ->cpumask to be set > >> we set this even on this UP system to please the framework. > > > > Hmm, how about whacking the framework maintainer on the head for that > > requirement? > > Yeah hm, I sort of figured it might be desirable to have this warning > on SMP. This: > > BUG_ON(!dev->cpumask); > > from clockevents.c is the culprit anyway. I dunno if it's best to > #ifdef CONFIG_SMP that thing (technically I guess it shouldn't > even be in the struct on UP but who cares) or if there is some > more clever way to do it runtime, so whatever you prefer, I can > patch it if you know what you want. We need it even on UP for the &!^%$@ broadcast mechanism to avoid a massive ifdef mess there :( But yeah, we can make it conditional for SMP and simply set cpumask_of(0) in the UP case. Thanks, tglx