提交 f6c133f7 编写于 作者: A Andi Kleen 提交者: Ingo Molnar

fix: x86: support for new UV apic

Don't warn in read_apic_id() when preemptible but only one CPU online.
Signed-off-by: NAndi Kleen <andi@firstfloor.org>
Signed-off-by: NIngo Molnar <mingo@elte.hu>
Signed-off-by: NThomas Gleixner <tglx@linutronix.de>
上级 575ca735
...@@ -83,7 +83,7 @@ unsigned int read_apic_id(void) ...@@ -83,7 +83,7 @@ unsigned int read_apic_id(void)
{ {
unsigned int id; unsigned int id;
WARN_ON(preemptible()); WARN_ON(preemptible() && num_online_cpus() > 1);
id = apic_read(APIC_ID); id = apic_read(APIC_ID);
if (uv_system_type >= UV_X2APIC) if (uv_system_type >= UV_X2APIC)
id |= __get_cpu_var(x2apic_extra_bits); id |= __get_cpu_var(x2apic_extra_bits);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册