lkml.org 
[lkml]   [2012]   [Jun]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: [patch] irq: use config_enabled(SMP) checks to cleanup irq_set_affinity() for UP
From
On Wed, Jun 6, 2012 at 4:29 PM, Suresh Siddha <suresh.b.siddha@intel.com> wrote:
> On Ingo's request, re-basing the previous version
> (http://marc.info/?l=linux-kernel&m=133667389223282) to the latest -tip
> tree. Thanks.
> ---
> From: Suresh Siddha <suresh.b.siddha@intel.com>
> Subject: irq: use config_enabled(CONFIG_SMP) checks to cleanup irq_set_affinity() for UP
>
> Use config_enabled(CONFIG_SMP) checks for cleaning up the ifdef CONFIG_SMP
> around irq_set_affinity routines in io_apic and irq_remapping subsystems.

can you just use
if (nr_cpu_ids > 1)
checking instead
if config_enabled(CONFIG_SMP)

Thanks

Yinghai Lu


\
 
 \ /
  Last update: 2012-06-07 04:01    [W:0.136 / U:0.080 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site