mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] RT: trace_irqs_on in raw_local_irq_restore
@ 2005-09-03  3:47 Daniel Walker
  2005-09-12 13:34 ` Ingo Molnar
  0 siblings, 1 reply; 2+ messages in thread
From: Daniel Walker @ 2005-09-03  3:47 UTC (permalink / raw)
  To: mingo; +Cc: linux-kernel


	Add trace_irqs_on() to raw_local_irq_restore() . 

Signed-Off-By: Daniel Walker <dwalker@mvista.com>

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



^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] RT: trace_irqs_on in raw_local_irq_restore
  2005-09-03  3:47 [PATCH] RT: trace_irqs_on in raw_local_irq_restore Daniel Walker
@ 2005-09-12 13:34 ` Ingo Molnar
  0 siblings, 0 replies; 2+ messages in thread
From: Ingo Molnar @ 2005-09-12 13:34 UTC (permalink / raw)
  To: Daniel Walker; +Cc: linux-kernel


* Daniel Walker <dwalker@mvista.com> wrote:

> 	Add trace_irqs_on() to raw_local_irq_restore() .
>
> Signed-Off-By: Daniel Walker <dwalker@mvista.com>

thanks, applied.

	Ingo

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2005-09-12 13:33 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-09-03  3:47 [PATCH] RT: trace_irqs_on in raw_local_irq_restore Daniel Walker
2005-09-12 13:34 ` Ingo Molnar

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®