[Devel] [PATCH rh7 1/2] Revert "ms/nmi: do not call unblank_screen() from nmi_show_regs()"

Vladimir Davydov vdavydov at parallels.com
Thu Jun 18 06:54:47 PDT 2015


This reverts commit db379bc41b62a568953ed544d2aa5d7f3d0f87f9.

Not needed, because d0f4641de70c7 ("x86/NMI: introduce dumps via nmi"),
which this patch fixes, will be dropped.

Signed-off-by: Vladimir Davydov <vdavydov at parallels.com>
---
 kernel/printk.c      | 4 ++--
 lib/bust_spinlocks.c | 5 ++---
 2 files changed, 4 insertions(+), 5 deletions(-)

diff --git a/kernel/printk.c b/kernel/printk.c
index 51805a54eca7..afb7cf8c1d4e 100644
--- a/kernel/printk.c
+++ b/kernel/printk.c
@@ -3144,7 +3144,7 @@ static void busted_show_regs(struct pt_regs *regs, int in_nmi)
 	bust_spinlocks(1);
 	printk("----------- IPI show regs -----------\n");
 	show_regs(regs);
-	bust_spinlocks(-1);
+	bust_spinlocks(0);
 }
 
 void nmi_show_regs(struct pt_regs *regs, int in_nmi)
@@ -3164,7 +3164,7 @@ void nmi_show_regs(struct pt_regs *regs, int in_nmi)
 		for_each_cpu_mask(cpu, nmi_show_regs_cpus)
 			printk("%d ", cpu);
 		printk("\n");
-		bust_spinlocks(-1);
+		bust_spinlocks(0);
 	}
 
 doit:
diff --git a/lib/bust_spinlocks.c b/lib/bust_spinlocks.c
index 4f5a1d834c4e..f8e0e5367398 100644
--- a/lib/bust_spinlocks.c
+++ b/lib/bust_spinlocks.c
@@ -18,12 +18,11 @@
 
 void __attribute__((weak)) bust_spinlocks(int yes)
 {
-	if (yes > 0) {
+	if (yes) {
 		++oops_in_progress;
 	} else {
 #ifdef CONFIG_VT
-		if (!yes)
-			unblank_screen();
+		unblank_screen();
 #endif
 		console_unblank();
 		if (--oops_in_progress == 0)
-- 
2.1.4




More information about the Devel mailing list