|
@@ -114,8 +114,12 @@ void __local_bh_disable_ip(unsigned long ip, unsigned int cnt)
|
|
trace_softirqs_off(ip);
|
|
trace_softirqs_off(ip);
|
|
raw_local_irq_restore(flags);
|
|
raw_local_irq_restore(flags);
|
|
|
|
|
|
- if (preempt_count() == cnt)
|
|
|
|
|
|
+ if (preempt_count() == cnt) {
|
|
|
|
+#ifdef CONFIG_DEBUG_PREEMPT
|
|
|
|
+ current->preempt_disable_ip = get_parent_ip(CALLER_ADDR1);
|
|
|
|
+#endif
|
|
trace_preempt_off(CALLER_ADDR0, get_parent_ip(CALLER_ADDR1));
|
|
trace_preempt_off(CALLER_ADDR0, get_parent_ip(CALLER_ADDR1));
|
|
|
|
+ }
|
|
}
|
|
}
|
|
EXPORT_SYMBOL(__local_bh_disable_ip);
|
|
EXPORT_SYMBOL(__local_bh_disable_ip);
|
|
#endif /* CONFIG_TRACE_IRQFLAGS */
|
|
#endif /* CONFIG_TRACE_IRQFLAGS */
|