aboutsummaryrefslogtreecommitdiffstats
path: root/arch/mn10300/include/asm/irqflags.h
diff options
context:
space:
mode:
authorAkira Takeuchi <takeuchi.akr@jp.panasonic.com>2010-10-27 12:28:54 -0400
committerDavid Howells <dhowells@redhat.com>2010-10-27 12:28:54 -0400
commit37e4ec96365a4b1179b994861e824e3c2fce32a1 (patch)
tree1c59c551600c94fff8fecbf29e9bfbcb60b2d429 /arch/mn10300/include/asm/irqflags.h
parentab244c1a08a4e234cd3761a8aba3cb5a7bbe525a (diff)
MN10300: Make various interrupt priority settings configurable
Make the settings of interrupt priorities used by various services configurable at run time. Signed-off-by: Akira Takeuchi <takeuchi.akr@jp.panasonic.com> Signed-off-by: Kiyoshi Owada <owada.kiyoshi@jp.panasonic.com> Signed-off-by: David Howells <dhowells@redhat.com>
Diffstat (limited to 'arch/mn10300/include/asm/irqflags.h')
-rw-r--r--arch/mn10300/include/asm/irqflags.h8
1 files changed, 2 insertions, 6 deletions
diff --git a/arch/mn10300/include/asm/irqflags.h b/arch/mn10300/include/asm/irqflags.h
index f1b64b256060..b3ab2071354d 100644
--- a/arch/mn10300/include/asm/irqflags.h
+++ b/arch/mn10300/include/asm/irqflags.h
@@ -23,11 +23,7 @@
23 * - level 6 - timer interrupt 23 * - level 6 - timer interrupt
24 * - "enabled": run in IM7 24 * - "enabled": run in IM7
25 */ 25 */
26#ifdef CONFIG_MN10300_TTYSM 26#define MN10300_CLI_LEVEL (CONFIG_LINUX_CLI_LEVEL << EPSW_IM_SHIFT)
27#define MN10300_CLI_LEVEL EPSW_IM_2
28#else
29#define MN10300_CLI_LEVEL EPSW_IM_1
30#endif
31 27
32#ifndef __ASSEMBLY__ 28#ifndef __ASSEMBLY__
33 29
@@ -94,7 +90,7 @@ static inline void arch_local_irq_restore(unsigned long flags)
94 90
95static inline bool arch_irqs_disabled_flags(unsigned long flags) 91static inline bool arch_irqs_disabled_flags(unsigned long flags)
96{ 92{
97 return (flags & EPSW_IM) <= MN10300_CLI_LEVEL; 93 return (flags & (EPSW_IE | EPSW_IM)) != (EPSW_IE | EPSW_IM_7);
98} 94}
99 95
100static inline bool arch_irqs_disabled(void) 96static inline bool arch_irqs_disabled(void)