-
- Downloads
arm64: Implement cache_line_size() based on CTR_EL0.CWG
The hardware provides the maximum cache line size in the system via the CTR_EL0.CWG bits. This patch implements the cache_line_size() function to read such information, together with a sanity check if the statically defined L1_CACHE_BYTES is smaller than the hardware value. Signed-off-by:Catalin Marinas <catalin.marinas@arm.com> Acked-by:
Will Deacon <will.deacon@arm.com>
Showing
- arch/arm64/Kconfig 3 additions, 0 deletionsarch/arm64/Kconfig
- arch/arm64/include/asm/cache.h 12 additions, 1 deletionarch/arm64/include/asm/cache.h
- arch/arm64/include/asm/cachetype.h 11 additions, 0 deletionsarch/arm64/include/asm/cachetype.h
- arch/arm64/kernel/setup.c 15 additions, 0 deletionsarch/arm64/kernel/setup.c
Loading
Please register or sign in to comment