dect
/
linux-2.6
Archived
13
0
Fork 0

fix: x86: support for new UV apic

Don't warn in read_apic_id() when preemptible but only one CPU online.

Signed-off-by: Andi Kleen <andi@firstfloor.org>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
This commit is contained in:
Andi Kleen 2008-04-25 11:45:26 +02:00 committed by Ingo Molnar
parent 575ca7351b
commit f6c133f7d5
1 changed files with 1 additions and 1 deletions

View File

@ -83,7 +83,7 @@ unsigned int read_apic_id(void)
{
unsigned int id;
WARN_ON(preemptible());
WARN_ON(preemptible() && num_online_cpus() > 1);
id = apic_read(APIC_ID);
if (uv_system_type >= UV_X2APIC)
id |= __get_cpu_var(x2apic_extra_bits);