From b5262268d15fa56eaa7af8f8357f672d99bb8b41 Mon Sep 17 00:00:00 2001 From: Jan Beulich Date: Tue, 16 Oct 2007 23:29:33 -0700 Subject: [PATCH] --- yaml --- r: 70661 b: refs/heads/master c: 004429956b4875e6bc2a31833f75363ce48cbea9 h: refs/heads/master i: 70659: 8ddd3c9d8f760c1407e4a4c22ff6698ffb225c9b v: v3 --- [refs] | 2 +- trunk/lib/bust_spinlocks.c | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/[refs] b/[refs] index d27bdfbccd5e..1a5d02378927 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: b311e921b385b5a848f0806df16276aca1ecae07 +refs/heads/master: 004429956b4875e6bc2a31833f75363ce48cbea9 diff --git a/trunk/lib/bust_spinlocks.c b/trunk/lib/bust_spinlocks.c index accb35658169..486da62b2b07 100644 --- a/trunk/lib/bust_spinlocks.c +++ b/trunk/lib/bust_spinlocks.c @@ -17,13 +17,13 @@ void __attribute__((weak)) bust_spinlocks(int yes) { if (yes) { - oops_in_progress = 1; + ++oops_in_progress; } else { #ifdef CONFIG_VT unblank_screen(); #endif - oops_in_progress = 0; - wake_up_klogd(); + if (--oops_in_progress == 0) + wake_up_klogd(); } }