Skip to content

Commit 143db67

Browse files
mpepaulusmack
authored andcommitted
[POWERPC] Provide dummy hard_irq_enable/disable() for PPC32
To allow arch/powerpc/kernel/crash.c to build on 32-bit we need a definition of hard_irq_disable(). 32-bit doesn't support the lazy interrupt disabling mechanism, so on 32-bit hard_irq_disable() is simply local_irq_disable(). Add a definition for hard_irq_enable() just for completeness. This allows (KEXEC=y && PPC32=y) to build again. Broken since d04c56f. Signed-off-by: Michael Ellerman <michael@ellerman.id.au> Signed-off-by: Paul Mackerras <paulus@samba.org>
1 parent 4cfbdff commit 143db67

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

include/asm-powerpc/hw_irq.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,9 @@ static inline void local_irq_save_ptr(unsigned long *flags)
102102
#define local_irq_save(flags) local_irq_save_ptr(&flags)
103103
#define irqs_disabled() ((mfmsr() & MSR_EE) == 0)
104104

105+
#define hard_irq_enable() local_irq_enable()
106+
#define hard_irq_disable() local_irq_disable()
107+
105108
#endif /* CONFIG_PPC64 */
106109

107110
#define mask_irq(irq) \

0 commit comments

Comments
 (0)