[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <tip-565cbc3e934f221369a656b4469a044aa4c3f2a8@git.kernel.org>
Date: Tue, 6 Dec 2011 12:25:40 -0800
From: tip-bot for Don Zickus <dzickus@...hat.com>
To: linux-tip-commits@...r.kernel.org
Cc: linux-kernel@...r.kernel.org, hpa@...or.com, mingo@...hat.com,
tglx@...utronix.de, mingo@...e.hu, dzickus@...hat.com
Subject: [tip:x86/debug] x86, NMI: NMI-selftest should handle the UP case properly
Commit-ID: 565cbc3e934f221369a656b4469a044aa4c3f2a8
Gitweb: http://git.kernel.org/tip/565cbc3e934f221369a656b4469a044aa4c3f2a8
Author: Don Zickus <dzickus@...hat.com>
AuthorDate: Tue, 6 Dec 2011 13:08:59 -0500
Committer: Ingo Molnar <mingo@...e.hu>
CommitDate: Tue, 6 Dec 2011 21:02:39 +0100
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: Don Zickus <dzickus@...hat.com>
Cc: andi@...stfloor.org
Cc: torvalds@...ux-foundation.org
Cc: peterz@...radead.org
Cc: robert.richter@....com
Link: http://lkml.kernel.org/r/20111206180859.GR1669@redhat.com
Signed-off-by: Ingo Molnar <mingo@...e.hu>
---
arch/x86/kernel/nmi_selftest.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/arch/x86/kernel/nmi_selftest.c b/arch/x86/kernel/nmi_selftest.c
index 572adb6..1e42a23 100644
--- a/arch/x86/kernel/nmi_selftest.c
+++ b/arch/x86/kernel/nmi_selftest.c
@@ -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)
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists