diff options
Diffstat (limited to 'include/asm-powerpc/hw_irq.h')
-rw-r--r-- | include/asm-powerpc/hw_irq.h | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/include/asm-powerpc/hw_irq.h b/include/asm-powerpc/hw_irq.h index 9e4dd98eb220..a7b60bf639e0 100644 --- a/include/asm-powerpc/hw_irq.h +++ b/include/asm-powerpc/hw_irq.h | |||
@@ -48,8 +48,15 @@ extern void iseries_handle_interrupts(void); | |||
48 | 48 | ||
49 | #define irqs_disabled() (local_get_flags() == 0) | 49 | #define irqs_disabled() (local_get_flags() == 0) |
50 | 50 | ||
51 | #define hard_irq_enable() __mtmsrd(mfmsr() | MSR_EE, 1) | 51 | #define __hard_irq_enable() __mtmsrd(mfmsr() | MSR_EE, 1) |
52 | #define hard_irq_disable() __mtmsrd(mfmsr() & ~MSR_EE, 1) | 52 | #define __hard_irq_disable() __mtmsrd(mfmsr() & ~MSR_EE, 1) |
53 | |||
54 | #define hard_irq_disable() \ | ||
55 | do { \ | ||
56 | __hard_irq_disable(); \ | ||
57 | get_paca()->soft_enabled = 0; \ | ||
58 | get_paca()->hard_enabled = 0; \ | ||
59 | } while(0) | ||
53 | 60 | ||
54 | #else | 61 | #else |
55 | 62 | ||