Skip to content

Commit

Permalink
x86, NMI: NMI-selftest should handle the UP case properly
Browse files Browse the repository at this point in the history
If no remote cpus are online, then just quietly skip the remote
IPI test for now.

Signed-off-by: Don 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: Ingo Molnar <mingo@elte.hu>
  • Loading branch information
Don Zickus authored and Ingo Molnar committed Dec 6, 2011
1 parent 53b5650 commit 565cbc3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion arch/x86/kernel/nmi_selftest.c
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,8 @@ 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));
test_nmi_ipi(to_cpumask(nmi_ipi_mask));
if (!cpumask_empty(nmi_ipi_mask))
test_nmi_ipi(to_cpumask(nmi_ipi_mask));
}

static void local_ipi(void)
Expand Down

0 comments on commit 565cbc3

Please sign in to comment.