Commit e6904ff6 authored by Jayachandran C's avatar Jayachandran C Committed by Ralf Baechle

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: default avatarJayachandran C <jchandra@broadcom.com>
Patchwork: http://patchwork.linux-mips.org/patch/5021/Acked-by: default avatarJohn Crispin <blogic@openwrt.org>
parent 33ff712a
...@@ -38,10 +38,6 @@ ...@@ -38,10 +38,6 @@
/* /*
* XLR and XLP interrupt request and interrupt mask registers * XLR and XLP interrupt request and interrupt mask registers
*/ */
#define read_c0_eirr() __read_64bit_c0_register($9, 6)
#define read_c0_eimr() __read_64bit_c0_register($9, 7)
#define write_c0_eirr(val) __write_64bit_c0_register($9, 6, val)
/* /*
* NOTE: Do not save/restore flags around write_c0_eimr(). * NOTE: Do not save/restore flags around write_c0_eimr().
* On non-R2 platforms the flags has part of EIMR that is shadowed in STATUS * 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,7 +121,7 @@ static inline uint64_t read_c0_eirr_and_eimr(void)
uint64_t val; uint64_t val;
#ifdef CONFIG_64BIT #ifdef CONFIG_64BIT
val = read_c0_eimr() & read_c0_eirr(); val = __read_64bit_c0_register($9, 6) & __read_64bit_c0_register($9, 7);
#else #else
__asm__ __volatile__( __asm__ __volatile__(
".set push\n\t" ".set push\n\t"
...@@ -140,7 +136,6 @@ static inline uint64_t read_c0_eirr_and_eimr(void) ...@@ -140,7 +136,6 @@ static inline uint64_t read_c0_eirr_and_eimr(void)
".set pop" ".set pop"
: "=r" (val)); : "=r" (val));
#endif #endif
return val; return val;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment