diff options
author | Jayachandran C <jchandra@broadcom.com> | 2013-03-23 13:27:54 -0400 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2013-05-07 19:19:04 -0400 |
commit | e6904ff6c6992e55e068678b1b6c95376fe328fd (patch) | |
tree | ab232a4270afc7319b4b7b15b1fc5e89e3f701db /arch | |
parent | 33ff712aef509ff1b116a46084c96179f8da1d49 (diff) |
MIPS: Netlogic: Remove unused EIMR/EIRR functions
Remove the definitions of {read,write}_c0_{eirr,eimr}. These functions
are now unused after the PIC and IRQ code has been updated to use
optimized EIMR/EIRR functions which work on both 32-bit and 64-bit.
Signed-off-by: Jayachandran C <jchandra@broadcom.com>
Patchwork: http://patchwork.linux-mips.org/patch/5021/
Acked-by: John Crispin <blogic@openwrt.org>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/mips/include/asm/netlogic/mips-extns.h | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/arch/mips/include/asm/netlogic/mips-extns.h b/arch/mips/include/asm/netlogic/mips-extns.h index 69d18a0e0581..f299d31d7c1a 100644 --- a/arch/mips/include/asm/netlogic/mips-extns.h +++ b/arch/mips/include/asm/netlogic/mips-extns.h | |||
@@ -38,10 +38,6 @@ | |||
38 | /* | 38 | /* |
39 | * XLR and XLP interrupt request and interrupt mask registers | 39 | * XLR and XLP interrupt request and interrupt mask registers |
40 | */ | 40 | */ |
41 | #define read_c0_eirr() __read_64bit_c0_register($9, 6) | ||
42 | #define read_c0_eimr() __read_64bit_c0_register($9, 7) | ||
43 | #define write_c0_eirr(val) __write_64bit_c0_register($9, 6, val) | ||
44 | |||
45 | /* | 41 | /* |
46 | * NOTE: Do not save/restore flags around write_c0_eimr(). | 42 | * NOTE: Do not save/restore flags around write_c0_eimr(). |
47 | * On non-R2 platforms the flags has part of EIMR that is shadowed in STATUS | 43 | * On non-R2 platforms the flags has part of EIMR that is shadowed in STATUS |
@@ -125,7 +121,7 @@ static inline uint64_t read_c0_eirr_and_eimr(void) | |||
125 | uint64_t val; | 121 | uint64_t val; |
126 | 122 | ||
127 | #ifdef CONFIG_64BIT | 123 | #ifdef CONFIG_64BIT |
128 | val = read_c0_eimr() & read_c0_eirr(); | 124 | val = __read_64bit_c0_register($9, 6) & __read_64bit_c0_register($9, 7); |
129 | #else | 125 | #else |
130 | __asm__ __volatile__( | 126 | __asm__ __volatile__( |
131 | ".set push\n\t" | 127 | ".set push\n\t" |
@@ -140,7 +136,6 @@ static inline uint64_t read_c0_eirr_and_eimr(void) | |||
140 | ".set pop" | 136 | ".set pop" |
141 | : "=r" (val)); | 137 | : "=r" (val)); |
142 | #endif | 138 | #endif |
143 | |||
144 | return val; | 139 | return val; |
145 | } | 140 | } |
146 | 141 | ||