Make hard_irq_disable() actually hard-disable interrupts
PATCH v2 1/1 Make hard_irq_disable() actually hard-disable interrupts
At present, hard_irq_disable() does nothing on powerpc because of this code in include/linux/interrupt.h:
#ifndef hard_irq_disable
#define hard_irq_disable() do { } while(0)
#endif
So we need to make our hard_irq_disable be a macro.
Signed-off-by Paul Mackerras <[email protected]>
--
arch/powerpc/include/asm/hw_irq.h | 3 +++ 1 file changed, 3 insertions(+)
arch/powerpc/include/asm/hw_irq.h +3 -0
@@ -100,6 +100,9 @@ static inline void hard_irq_disable(void)get_paca ()->irq_happened |=PACA_IRQ_HARD_DIS ; } +/* include/linux/interrupt.h needs hard_irq_disable to be a macro */ +#define hard_irq_disable hard_irq_disable +/* * This is called by asynchronous interrupts to conditionally * re-enable hard interrupts when soft-disabled after having
Quoted 11 lines · Paul Mackerras
At present,
hard_irq_disable()does nothing on powerpc because of this code ininclude/linux/interrupt.h:#ifndef
hard_irq_disable
#definehard_irq_disable()do { } while(0)
#endifSo we need to make our
hard_irq_disablebe a macro.Signed-off-by Paul Mackerras <[email protected]>
Add:
CC <[email protected]> [v3.4]
Before sending to Linus so it hits stable automagically.
Cheers,
Ben.
Quoted 18 lines
--
arch/powerpc/include/asm/hw_irq.h | 3 +++ 1 file changed, 3 insertions(+)arch/powerpc/include/asm/hw_irq.h +3
-0@@ -100,6 +100,9 @@ static inline void hard_irq_disable(void)get_paca ()->irq_happened |=PACA_IRQ_HARD_DIS ; } +/* include/linux/interrupt.h needs hard_irq_disable to be a macro */ +#define hard_irq_disable hard_irq_disable +/* * This is called by asynchronous interrupts to conditionally * re-enable hard interrupts when soft-disabled after having