diff options
author | Markos Chandras <markos.chandras@imgtec.com> | 2014-11-13 06:54:31 -0500 |
---|---|---|
committer | Markos Chandras <markos.chandras@imgtec.com> | 2015-02-17 10:37:20 -0500 |
commit | 8716a7635665008291d3f19dd5d36a858ed1561b (patch) | |
tree | 0b06e1bc6b678874ae73d4802e218ccaca3d5d30 | |
parent | f52fca9713c223b8e90ab00eea46d494789f1d77 (diff) |
MIPS: asm: irqflags: Add MIPS R6 related definitions
Add the MIPS R6 related definitions to the IRQ related macros
Signed-off-by: Markos Chandras <markos.chandras@imgtec.com>
-rw-r--r-- | arch/mips/include/asm/irqflags.h | 7 | ||||
-rw-r--r-- | arch/mips/lib/mips-atomic.c | 2 |
2 files changed, 5 insertions, 4 deletions
diff --git a/arch/mips/include/asm/irqflags.h b/arch/mips/include/asm/irqflags.h index 0fa5fdcd1f01..d60cc68fa31e 100644 --- a/arch/mips/include/asm/irqflags.h +++ b/arch/mips/include/asm/irqflags.h | |||
@@ -15,9 +15,10 @@ | |||
15 | 15 | ||
16 | #include <linux/compiler.h> | 16 | #include <linux/compiler.h> |
17 | #include <linux/stringify.h> | 17 | #include <linux/stringify.h> |
18 | #include <asm/compiler.h> | ||
18 | #include <asm/hazards.h> | 19 | #include <asm/hazards.h> |
19 | 20 | ||
20 | #ifdef CONFIG_CPU_MIPSR2 | 21 | #if defined(CONFIG_CPU_MIPSR2) || defined (CONFIG_CPU_MIPSR6) |
21 | 22 | ||
22 | static inline void arch_local_irq_disable(void) | 23 | static inline void arch_local_irq_disable(void) |
23 | { | 24 | { |
@@ -118,7 +119,7 @@ void arch_local_irq_disable(void); | |||
118 | unsigned long arch_local_irq_save(void); | 119 | unsigned long arch_local_irq_save(void); |
119 | void arch_local_irq_restore(unsigned long flags); | 120 | void arch_local_irq_restore(unsigned long flags); |
120 | void __arch_local_irq_restore(unsigned long flags); | 121 | void __arch_local_irq_restore(unsigned long flags); |
121 | #endif /* CONFIG_CPU_MIPSR2 */ | 122 | #endif /* CONFIG_CPU_MIPSR2 || CONFIG_CPU_MIPSR6 */ |
122 | 123 | ||
123 | static inline void arch_local_irq_enable(void) | 124 | static inline void arch_local_irq_enable(void) |
124 | { | 125 | { |
@@ -126,7 +127,7 @@ static inline void arch_local_irq_enable(void) | |||
126 | " .set push \n" | 127 | " .set push \n" |
127 | " .set reorder \n" | 128 | " .set reorder \n" |
128 | " .set noat \n" | 129 | " .set noat \n" |
129 | #if defined(CONFIG_CPU_MIPSR2) | 130 | #if defined(CONFIG_CPU_MIPSR2) || defined(CONFIG_CPU_MIPSR6) |
130 | " ei \n" | 131 | " ei \n" |
131 | #else | 132 | #else |
132 | " mfc0 $1,$12 \n" | 133 | " mfc0 $1,$12 \n" |
diff --git a/arch/mips/lib/mips-atomic.c b/arch/mips/lib/mips-atomic.c index be777d9a3f85..272af8ac2425 100644 --- a/arch/mips/lib/mips-atomic.c +++ b/arch/mips/lib/mips-atomic.c | |||
@@ -15,7 +15,7 @@ | |||
15 | #include <linux/export.h> | 15 | #include <linux/export.h> |
16 | #include <linux/stringify.h> | 16 | #include <linux/stringify.h> |
17 | 17 | ||
18 | #ifndef CONFIG_CPU_MIPSR2 | 18 | #if !defined(CONFIG_CPU_MIPSR2) && !defined(CONFIG_CPU_MIPSR6) |
19 | 19 | ||
20 | /* | 20 | /* |
21 | * For cli() we have to insert nops to make sure that the new value | 21 | * For cli() we have to insert nops to make sure that the new value |