diff options
author | Paul Mundt | 2009-10-17 14:06:39 +0200 |
---|---|---|
committer | Paul Mundt | 2009-10-17 14:06:39 +0200 |
commit | 03fdb708926d5df2d9b9e62222c1666e20caa9e3 (patch) | |
tree | 531492d3aa5fea519f348d128e3405bc96adac51 /arch/sh/include/asm/irqflags.h | |
parent | sh: Kill off legacy UBC wakeup cruft. (diff) | |
download | kernel-qcow2-linux-03fdb708926d5df2d9b9e62222c1666e20caa9e3.tar.gz kernel-qcow2-linux-03fdb708926d5df2d9b9e62222c1666e20caa9e3.tar.xz kernel-qcow2-linux-03fdb708926d5df2d9b9e62222c1666e20caa9e3.zip |
sh: Convert to asm-generic/irqflags.h.
This simplifies the irqflags support by switching over to the asm-generic
version. The necessary support functions are brought out-of-line for both
SHcompact and SHmedia instruction sets.
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch/sh/include/asm/irqflags.h')
-rw-r--r-- | arch/sh/include/asm/irqflags.h | 31 |
1 files changed, 3 insertions, 28 deletions
diff --git a/arch/sh/include/asm/irqflags.h b/arch/sh/include/asm/irqflags.h index 46e71da5be6b..a741153b41c2 100644 --- a/arch/sh/include/asm/irqflags.h +++ b/arch/sh/include/asm/irqflags.h @@ -1,34 +1,9 @@ #ifndef __ASM_SH_IRQFLAGS_H #define __ASM_SH_IRQFLAGS_H -#ifdef CONFIG_SUPERH32 -#include "irqflags_32.h" -#else -#include "irqflags_64.h" -#endif +#define RAW_IRQ_DISABLED 0xf0 +#define RAW_IRQ_ENABLED 0x00 -#define raw_local_save_flags(flags) \ - do { (flags) = __raw_local_save_flags(); } while (0) - -static inline int raw_irqs_disabled_flags(unsigned long flags) -{ - return (flags != 0); -} - -static inline int raw_irqs_disabled(void) -{ - unsigned long flags = __raw_local_save_flags(); - - return raw_irqs_disabled_flags(flags); -} - -#define raw_local_irq_save(flags) \ - do { (flags) = __raw_local_irq_save(); } while (0) - -static inline void raw_local_irq_restore(unsigned long flags) -{ - if ((flags & 0xf0) != 0xf0) - raw_local_irq_enable(); -} +#include <asm-generic/irqflags.h> #endif /* __ASM_SH_IRQFLAGS_H */ |