Skip to content

Commit

Permalink
fix: x86: support for new UV apic
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Andi Kleen authored and Ingo Molnar committed Apr 30, 2008
1 parent 575ca73 commit f6c133f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/x86/kernel/genapic_64.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit f6c133f

Please sign in to comment.