diff options
author | Michael Ellerman <michael@ellerman.id.au> | 2006-11-26 01:36:15 -0500 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2006-12-04 04:41:27 -0500 |
commit | 143db67af02cecab28032ec3a52e586b1433fe70 (patch) | |
tree | 1e56491f55853492053714df7ea411ce311ea386 /include/asm-powerpc/hw_irq.h | |
parent | 4cfbdfff70989a0d99b6f357fbbe379c22a05f7c (diff) |
[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
d04c56f73c30a5e593202ecfcf25ed43d42363a2.
Signed-off-by: Michael Ellerman <michael@ellerman.id.au>
Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'include/asm-powerpc/hw_irq.h')
-rw-r--r-- | include/asm-powerpc/hw_irq.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/asm-powerpc/hw_irq.h b/include/asm-powerpc/hw_irq.h index fd3f2a206271..d604863d72fb 100644 --- a/include/asm-powerpc/hw_irq.h +++ b/include/asm-powerpc/hw_irq.h | |||
@@ -102,6 +102,9 @@ static inline void local_irq_save_ptr(unsigned long *flags) | |||
102 | #define local_irq_save(flags) local_irq_save_ptr(&flags) | 102 | #define local_irq_save(flags) local_irq_save_ptr(&flags) |
103 | #define irqs_disabled() ((mfmsr() & MSR_EE) == 0) | 103 | #define irqs_disabled() ((mfmsr() & MSR_EE) == 0) |
104 | 104 | ||
105 | #define hard_irq_enable() local_irq_enable() | ||
106 | #define hard_irq_disable() local_irq_disable() | ||
107 | |||
105 | #endif /* CONFIG_PPC64 */ | 108 | #endif /* CONFIG_PPC64 */ |
106 | 109 | ||
107 | #define mask_irq(irq) \ | 110 | #define mask_irq(irq) \ |