diff options
author | Ingo Molnar <mingo@elte.hu> | 2010-10-23 18:05:43 (GMT) |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2010-10-23 18:05:43 (GMT) |
commit | b8ecad8b2f8757d51632b1ea6d602c1f7b9760a2 (patch) | |
tree | 5a03029dbf02df606fa48a82525eb321e59b5c33 /kernel | |
parent | eea4a0b19a2719e3e23b5450dd9fbe97789d2a57 (diff) | |
parent | 8bfb5e7d6a14b29cffddd113f4b0be7d9aafc1e8 (diff) | |
download | linux-b8ecad8b2f8757d51632b1ea6d602c1f7b9760a2.tar.xz |
Merge branch 'perf/core' of git://git.kernel.org/pub/scm/linux/kernel/git/acme/linux-2.6 into perf/urgent
Diffstat (limited to 'kernel')
-rw-r--r-- | kernel/softirq.c | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/kernel/softirq.c b/kernel/softirq.c index fc97888..e33fd71 100644 --- a/kernel/softirq.c +++ b/kernel/softirq.c @@ -229,18 +229,20 @@ restart: do { if (pending & 1) { + unsigned int vec_nr = h - softirq_vec; int prev_count = preempt_count(); - kstat_incr_softirqs_this_cpu(h - softirq_vec); - trace_softirq_entry(h, softirq_vec); + kstat_incr_softirqs_this_cpu(vec_nr); + + trace_softirq_entry(vec_nr); h->action(h); - trace_softirq_exit(h, softirq_vec); + trace_softirq_exit(vec_nr); if (unlikely(prev_count != preempt_count())) { - printk(KERN_ERR "huh, entered softirq %td %s %p" + printk(KERN_ERR "huh, entered softirq %u %s %p" "with preempt_count %08x," - " exited with %08x?\n", h - softirq_vec, - softirq_to_name[h - softirq_vec], - h->action, prev_count, preempt_count()); + " exited with %08x?\n", vec_nr, + softirq_to_name[vec_nr], h->action, + prev_count, preempt_count()); preempt_count() = prev_count; } |