lkml.org 
[lkml]   [2012]   [Jun]   [7]   [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 Thu, Jun 7, 2012 at 1:31 PM, Suresh Siddha <suresh.b.siddha@intel.com> wrote:
>>
>> can you just use
>> if (nr_cpu_ids > 1)
>> checking instead
>> if config_enabled(CONFIG_SMP)
>
> Idea is to not have any extra runtime checks if CONFIG_SMP is enabled
> and which is when all the smp affinity routines are used/invoked.

then could use
if (NR_CPUS > 1)

Thanks

Yinghai


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