diff options
author | Mark Rutland <mark.rutland@arm.com> | 2021-08-20 14:51:33 +0100 |
---|---|---|
committer | Mark Rutland <mark.rutland@arm.com> | 2021-08-25 10:47:53 +0100 |
commit | 325f6ccc9be91137630cbcad988be82473ab0eeb (patch) | |
tree | c3a419a0a397c61b63b2244550c5025f8d05d22e | |
parent | 5cd6238ec4ef97687eeea9e011db0d6305216543 (diff) | |
download | boot-wrapper-aarch64-325f6ccc9be91137630cbcad988be82473ab0eeb.tar.gz |
Remove unused Set/Way cache helpers
We removed the Set/Way cache maintenance in commit:
864182b26c20a39d ("Remove cache maintenance")
... but forgot to remove the arch helpers which are now unused.
Remove the unused helpers.
Signed-off-by: Mark Rutland <mark.rutland@arm.com>
Reviewed-by: Andre Przywara <andre.przywara@arm.com>
Acked-by: Marc Zyngier <maz@kernel.org>
-rw-r--r-- | arch/aarch32/include/asm/cpu.h | 26 | ||||
-rw-r--r-- | arch/aarch64/include/asm/cpu.h | 26 |
2 files changed, 0 insertions, 52 deletions
diff --git a/arch/aarch32/include/asm/cpu.h b/arch/aarch32/include/asm/cpu.h index 878be67..a7993f0 100644 --- a/arch/aarch32/include/asm/cpu.h +++ b/arch/aarch32/include/asm/cpu.h @@ -56,32 +56,6 @@ static inline uint32_t read_id_pfr1(void) return val; } -static inline uint32_t read_clidr(void) -{ - uint32_t val; - - asm volatile ("mrc p15, 1, %0, c0, c0, 1" : "=r" (val)); - return val; -} - -static inline uint32_t read_ccsidr(void) -{ - uint32_t val; - - asm volatile ("mrc p15, 1, %0, c0, c0, 0" : "=r" (val)); - return val; -} - -static inline void write_csselr(uint32_t val) -{ - asm volatile ("mcr p15, 2, %0, c0, c0, 0" : : "r" (val)); -} - -static inline void dccisw(uint32_t val) -{ - asm volatile ("mcr p15, 0, %0, c7, c14, 2" : : "r" (val)); -} - static inline void iciallu(void) { uint32_t val = 0; diff --git a/arch/aarch64/include/asm/cpu.h b/arch/aarch64/include/asm/cpu.h index ccb5397..1cddbb8 100644 --- a/arch/aarch64/include/asm/cpu.h +++ b/arch/aarch64/include/asm/cpu.h @@ -66,32 +66,6 @@ static inline uint64_t read_id_aa64pfr0(void) return val; } -static inline uint32_t read_clidr(void) -{ - uint32_t val; - - asm volatile ("mrs %0, clidr_el1" : "=r" (val)); - return val; -} - -static inline uint32_t read_ccsidr(void) -{ - uint32_t val; - - asm volatile ("mrs %0, ccsidr_el1" : "=r" (val)); - return val; -} - -static inline void write_csselr(uint32_t val) -{ - asm volatile ("msr csselr_el1, %0" : : "r" (val)); -} - -static inline void dccisw(uint32_t val) -{ - asm volatile ("dc cisw, %0" : : "r" (val)); -} - static inline void iciallu(void) { asm volatile ("ic iallu"); |