From: tip-bot for Don Zickus <dzickus@redhat.com>
To: linux-tip-commits@vger.kernel.org
Cc: linux-kernel@vger.kernel.org, hpa@zytor.com, mingo@redhat.com,
tglx@linutronix.de, mingo@elte.hu, dzickus@redhat.com
Subject: [tip:x86/debug] x86, NMI: NMI-selftest should handle the UP case properly
Date: Tue, 6 Dec 2011 12:25:40 -0800 [thread overview]
Message-ID: <tip-565cbc3e934f221369a656b4469a044aa4c3f2a8@git.kernel.org> (raw)
In-Reply-To: <20111206180859.GR1669@redhat.com>
Commit-ID: 565cbc3e934f221369a656b4469a044aa4c3f2a8
Gitweb: http://git.kernel.org/tip/565cbc3e934f221369a656b4469a044aa4c3f2a8
Author: Don Zickus <dzickus@redhat.com>
AuthorDate: Tue, 6 Dec 2011 13:08:59 -0500
Committer: Ingo Molnar <mingo@elte.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@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>
---
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)
next prev parent reply other threads:[~2011-12-06 20:26 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-10-13 19:14 [v2 PATCH 0/3] Use NMI to stop cpus Don Zickus
2011-10-13 19:14 ` [v2 PATCH 1/3] x86, reboot: Use NMI instead of REBOOT_VECTOR " Don Zickus
2011-12-05 13:21 ` [tip:x86/debug] " tip-bot for Don Zickus
2011-12-20 22:38 ` Yinghai Lu
2011-12-21 14:59 ` Don Zickus
2011-12-21 18:24 ` Yinghai Lu
2011-12-22 20:16 ` Don Zickus
2012-01-05 18:17 ` Don Zickus
2012-01-05 21:44 ` Yinghai Lu
2011-10-13 19:14 ` [v2 PATCH 2/3] x86, NMI: Add NMI IPI selftest Don Zickus
2011-12-05 13:22 ` [tip:x86/debug] " tip-bot for Don Zickus
2011-12-06 9:06 ` Ingo Molnar
2011-12-06 18:08 ` Don Zickus
2011-12-06 20:01 ` Ingo Molnar
2011-12-06 20:25 ` tip-bot for Don Zickus [this message]
2011-12-07 11:06 ` [patch] x86, NMI: add to_cpumask() to silence compile warning Dan Carpenter
2011-12-07 14:59 ` Don Zickus
2011-12-07 21:12 ` Don Zickus
2011-10-13 19:14 ` [v2 PATCH 3/3] x86, NMI: knob to disable using NMI IPIs to stop cpus Don Zickus
2011-12-05 13:23 ` [tip:x86/debug] x86, NMI: Add " tip-bot for Don Zickus
2011-11-08 19:25 ` [v2 PATCH 0/3] Use NMI " Don Zickus
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=tip-565cbc3e934f221369a656b4469a044aa4c3f2a8@git.kernel.org \
--to=dzickus@redhat.com \
--cc=hpa@zytor.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-tip-commits@vger.kernel.org \
--cc=mingo@elte.hu \
--cc=mingo@redhat.com \
--cc=tglx@linutronix.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.