Re: [PATCH 2/2] irq: use config_enabled(SMP) checks to cleanupirq_set_affinity() for UP

From: Ingo Molnar
Date: Thu May 10 2012 - 03:50:35 EST



* Suresh Siddha <suresh.b.siddha@xxxxxxxxx> wrote:

> On Wed, 2012-05-09 at 11:46 -0700, Suresh Siddha wrote:
> > Use config_enabled(SMP) checks for cleaning up the ifdef CONFIG_SMP around
> > irq_set_affinity routines in io_apic and irq_remapping subsystems.
> >
>
> Switched to IS_BUILTIN() instead. Thanks.

Hm, what was wrong with config_enabled(CONFIG_SMP)?

The IS_BUILTIN() macro is 1) shouting loud, needlessly 2)
somewhat confusing for the CONFIG_SMP case: of course SMP is
'built in', not modular - and the fact that 'built in' also
implies 'enabled' is lost in that naming variant.

So I think IS_BUILTIN() makes more sense for genuine tri-state
config knobs, and bools like CONFIG_SMP should se
config_enabled()..

Thanks,

Ingo
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/