]> git.dujemihanovic.xyz Git - u-boot.git/commit
MIPS: Probe cache line sizes once during boot
authorPaul Burton <paul.burton@imgtec.com>
Wed, 21 Sep 2016 10:18:48 +0000 (11:18 +0100)
committerDaniel Schwierzeck <daniel.schwierzeck@gmail.com>
Wed, 21 Sep 2016 13:04:04 +0000 (15:04 +0200)
commit8cb4817d0f076605c5126f0925f6c7fdb0461bf6
tree2a0ee6d92cec0d877ec0a3690b8d75ddbde27168
parent0dfe04d6c8a52624c5404392168e52fe70fe0dc9
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>
arch/mips/cpu/cpu.c
arch/mips/include/asm/cache.h
arch/mips/include/asm/global_data.h
arch/mips/lib/cache.c