From f6dbcd651e61404f9333f091c039e9e0f1d26303 Mon Sep 17 00:00:00 2001 From: Thomas Gleixner Date: Thu, 2 Oct 2008 10:50:53 +0200 Subject: [PATCH] --- yaml --- r: 115204 b: refs/heads/master c: 8e85b4b553fc932e1c5141feb5fda389b7f5db01 h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/kernel/softirq.c | 11 +++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/[refs] b/[refs] index 2fccbbfcdaee..ae047dd1ff91 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 978b0116cd225682a29e3d1d5010319bf2de32c2 +refs/heads/master: 8e85b4b553fc932e1c5141feb5fda389b7f5db01 diff --git a/trunk/kernel/softirq.c b/trunk/kernel/softirq.c index 82e32aadedd8..1cf1e2f2c406 100644 --- a/trunk/kernel/softirq.c +++ b/trunk/kernel/softirq.c @@ -205,7 +205,18 @@ asmlinkage void __do_softirq(void) do { if (pending & 1) { + int prev_count = preempt_count(); + h->action(h); + + if (unlikely(prev_count != preempt_count())) { + printk(KERN_ERR "huh, entered sotfirq %ld %p" + "with preempt_count %08x," + " exited with %08x?\n", h - softirq_vec, + h->action, prev_count, preempt_count()); + preempt_count() = prev_count; + } + rcu_bh_qsctr_inc(cpu); } h++;