Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f6c133f7 authored by Andi Kleen's avatar Andi Kleen Committed by Ingo Molnar
Browse files

fix: x86: support for new UV apic



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

Signed-off-by: default avatarAndi Kleen <andi@firstfloor.org>
Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
parent 575ca735
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);