-
- Downloads
MIPS: Probe cache line sizes once during boot
Rather than probing the cache line sizes on every call of any cache
maintenance function, probe them once during boot & store the values in
the global data structure for later use. This will reduce the overhead
of the cache maintenance functions, which isn't a big deal yet but
becomes more important once L2 caches which may expose their properties
via coprocessor 2 or the CM are supported.
Signed-off-by:
Paul Burton <paul.burton@imgtec.com>
Showing
- arch/mips/cpu/cpu.c 7 additions, 0 deletionsarch/mips/cpu/cpu.c
- arch/mips/include/asm/cache.h 9 additions, 0 deletionsarch/mips/include/asm/cache.h
- arch/mips/include/asm/global_data.h 4 additions, 0 deletionsarch/mips/include/asm/global_data.h
- arch/mips/lib/cache.c 25 additions, 18 deletionsarch/mips/lib/cache.c
Please register or sign in to comment