Add trace_irqs_on() to raw_local_irq_restore() . 

Signed-Off-By: Daniel Walker <[EMAIL PROTECTED]>

Index: linux-2.6.13/include/linux/rt_irq.h
===================================================================
--- linux-2.6.13.orig/include/linux/rt_irq.h    2005-09-01 21:25:53.000000000 
+0000
+++ linux-2.6.13/include/linux/rt_irq.h 2005-09-03 00:45:28.000000000 +0000
@@ -30,7 +30,8 @@ extern int irqs_disabled_flags(unsigned 
 # define raw_local_irq_disable()       do { __raw_local_irq_disable(); 
trace_irqs_off(); } while (0)
 # define raw_local_irq_save(flags)     do { __raw_local_irq_save(flags); 
trace_irqs_off(); } while (0)
 # define raw_local_irq_restore(flags) \
-       do { check_raw_flags(flags); __raw_local_irq_restore(flags); } while (0)
+       do { check_raw_flags(flags); if (!__raw_irqs_disabled_flags(flags)) { 
trace_irqs_on(); } \
+                       __raw_local_irq_restore(flags); } while (0)
 # define raw_safe_halt()               __raw_safe_halt()
 #else
 # define RAW_LOCAL_ILLEGAL_MASK                0UL


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Reply via email to