diff options
author | Steven Rostedt <rostedt@goodmis.org> | 2008-05-14 23:49:43 -0400 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2008-05-23 22:37:23 +0200 |
commit | e0eca07badc023a675a61906020b397da20f07c3 (patch) | |
tree | f281bd64f2cc2927c586358bcfd1971ef68e65b5 /include/asm-powerpc | |
parent | 489f139614596cbc956a06f5e4bb41288e276fe3 (diff) | |
download | kernel_samsung_espresso10-e0eca07badc023a675a61906020b397da20f07c3.zip kernel_samsung_espresso10-e0eca07badc023a675a61906020b397da20f07c3.tar.gz kernel_samsung_espresso10-e0eca07badc023a675a61906020b397da20f07c3.tar.bz2 |
ftrace, POWERPC: add irqs_disabled_flags to ppc
PPC doesn't have the irqs_disabled_flags needed by ftrace.
This patch adds it.
Signed-off-by: Steven Rostedt <srostedt@redhat.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'include/asm-powerpc')
-rw-r--r-- | include/asm-powerpc/hw_irq.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/include/asm-powerpc/hw_irq.h b/include/asm-powerpc/hw_irq.h index ad8c9f7..f75a5fc 100644 --- a/include/asm-powerpc/hw_irq.h +++ b/include/asm-powerpc/hw_irq.h @@ -59,6 +59,11 @@ extern void iseries_handle_interrupts(void); get_paca()->hard_enabled = 0; \ } while(0) +static inline int irqs_disabled_flags(unsigned long flags) +{ + return flags == 0; +} + #else #if defined(CONFIG_BOOKE) @@ -113,6 +118,11 @@ static inline void local_irq_save_ptr(unsigned long *flags) #define hard_irq_enable() local_irq_enable() #define hard_irq_disable() local_irq_disable() +static inline int irqs_disabled_flags(unsigned long flags) +{ + return (flags & MSR_EE) == 0; +} + #endif /* CONFIG_PPC64 */ /* |