Browse Source

Merge tag 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/paulus/powerpc

Pull PowerPC fix from Paul Mackerras:
 "Just one commit, and a one-liner at that, but an important one;
  without it hard_irq_disable() does nothing on powerpc."

* tag 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/paulus/powerpc:
  Make hard_irq_disable() actually hard-disable interrupts
Linus Torvalds 13 years ago
parent
commit
1043e3becf
1 changed files with 3 additions and 0 deletions
  1. 3 0
      arch/powerpc/include/asm/hw_irq.h

+ 3 - 0
arch/powerpc/include/asm/hw_irq.h

@@ -100,6 +100,9 @@ static inline void hard_irq_disable(void)
 	get_paca()->irq_happened |= PACA_IRQ_HARD_DIS;
 	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
  * This is called by asynchronous interrupts to conditionally
  * re-enable hard interrupts when soft-disabled after having
  * re-enable hard interrupts when soft-disabled after having