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

Commit 565cbc3e authored by Don Zickus's avatar Don Zickus Committed by Ingo Molnar
Browse files

x86, NMI: NMI-selftest should handle the UP case properly



If no remote cpus are online, then just quietly skip the remote
IPI test for now.

Signed-off-by: default avatarDon Zickus <dzickus@redhat.com>
Cc: andi@firstfloor.org
Cc: torvalds@linux-foundation.org
Cc: peterz@infradead.org
Cc: robert.richter@amd.com
Link: http://lkml.kernel.org/r/20111206180859.GR1669@redhat.com


Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
parent 53b56502
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -90,6 +90,7 @@ static void remote_ipi(void)
{
	cpumask_copy(to_cpumask(nmi_ipi_mask), cpu_online_mask);
	cpumask_clear_cpu(smp_processor_id(), to_cpumask(nmi_ipi_mask));
	if (!cpumask_empty(nmi_ipi_mask))
		test_nmi_ipi(to_cpumask(nmi_ipi_mask));
}