lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAE9FiQX=UGETwk+j1YQzGSJQsvuTWBN1LzL_BbF2r5qS-EFG7Q@mail.gmail.com>
Date:	Thu, 7 Jun 2012 13:36:13 -0700
From:	Yinghai Lu <yinghai@...nel.org>
To:	Suresh Siddha <suresh.b.siddha@...el.com>
Cc:	Ingo Molnar <mingo@...nel.org>, tglx@...utronix.de,
	linux-kernel@...r.kernel.org, torvalds@...ux-foundation.org,
	joerg.roedel@....com, paul.gortmaker@...driver.com,
	Sam Ravnborg <sam@...nborg.org>
Subject: Re: [patch] irq: use config_enabled(SMP) checks to cleanup
 irq_set_affinity() for UP

On Thu, Jun 7, 2012 at 1:31 PM, Suresh Siddha <suresh.b.siddha@...el.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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ