diff options
| author | Guenter Roeck <linux@roeck-us.net> | 2013-08-30 09:01:49 -0400 |
|---|---|---|
| committer | Guenter Roeck <linux@roeck-us.net> | 2013-09-16 21:19:04 -0400 |
| commit | 4b08478422040ae8cb11acc15d51f1cdb0ac39c8 (patch) | |
| tree | 79718cea7b73f175d64e4c2073ea2585a7bd2337 /arch/h8300/include/asm/irqflags.h | |
| parent | 272b98c6455f00884f0350f775c5342358ebb73f (diff) | |
Drop support for Renesas H8/300 (h8300) architecture
H8/300 has been dead for several years, and the kernel for it
has not compiled for ages. Drop support for it.
Cc: Yoshinori Sato <ysato@users.sourceforge.jp>
Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Diffstat (limited to 'arch/h8300/include/asm/irqflags.h')
| -rw-r--r-- | arch/h8300/include/asm/irqflags.h | 43 |
1 files changed, 0 insertions, 43 deletions
diff --git a/arch/h8300/include/asm/irqflags.h b/arch/h8300/include/asm/irqflags.h deleted file mode 100644 index 9617cd57aebd..000000000000 --- a/arch/h8300/include/asm/irqflags.h +++ /dev/null | |||
| @@ -1,43 +0,0 @@ | |||
| 1 | #ifndef _H8300_IRQFLAGS_H | ||
| 2 | #define _H8300_IRQFLAGS_H | ||
| 3 | |||
| 4 | static inline unsigned long arch_local_save_flags(void) | ||
| 5 | { | ||
| 6 | unsigned long flags; | ||
| 7 | asm volatile ("stc ccr,%w0" : "=r" (flags)); | ||
| 8 | return flags; | ||
| 9 | } | ||
| 10 | |||
| 11 | static inline void arch_local_irq_disable(void) | ||
| 12 | { | ||
| 13 | asm volatile ("orc #0x80,ccr" : : : "memory"); | ||
| 14 | } | ||
| 15 | |||
| 16 | static inline void arch_local_irq_enable(void) | ||
| 17 | { | ||
| 18 | asm volatile ("andc #0x7f,ccr" : : : "memory"); | ||
| 19 | } | ||
| 20 | |||
| 21 | static inline unsigned long arch_local_irq_save(void) | ||
| 22 | { | ||
| 23 | unsigned long flags = arch_local_save_flags(); | ||
| 24 | arch_local_irq_disable(); | ||
| 25 | return flags; | ||
| 26 | } | ||
| 27 | |||
| 28 | static inline void arch_local_irq_restore(unsigned long flags) | ||
| 29 | { | ||
| 30 | asm volatile ("ldc %w0,ccr" : : "r" (flags) : "memory"); | ||
| 31 | } | ||
| 32 | |||
| 33 | static inline bool arch_irqs_disabled_flags(unsigned long flags) | ||
| 34 | { | ||
| 35 | return (flags & 0x80) == 0x80; | ||
| 36 | } | ||
| 37 | |||
| 38 | static inline bool arch_irqs_disabled(void) | ||
| 39 | { | ||
| 40 | return arch_irqs_disabled_flags(arch_local_save_flags()); | ||
| 41 | } | ||
| 42 | |||
| 43 | #endif /* _H8300_IRQFLAGS_H */ | ||
