]> asedeno.scripts.mit.edu Git - linux.git/blobdiff - kernel/softirq.c
x86/events/intel/ds: Fix bts_interrupt_threshold alignment
[linux.git] / kernel / softirq.c
index de2f57fddc04ed85f5d419fe64e51cdcbb93193b..900dcfee542ced866dd3d55274383ac1c4ae7284 100644 (file)
@@ -139,9 +139,13 @@ static void __local_bh_enable(unsigned int cnt)
 {
        lockdep_assert_irqs_disabled();
 
+       if (preempt_count() == cnt)
+               trace_preempt_on(CALLER_ADDR0, get_lock_parent_ip());
+
        if (softirq_count() == (cnt & SOFTIRQ_MASK))
                trace_softirqs_on(_RET_IP_);
-       preempt_count_sub(cnt);
+
+       __preempt_count_sub(cnt);
 }
 
 /*