mirror of
https://xff.cz/git/u-boot/
synced 2025-10-18 08:23:24 +02:00
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>
This commit is contained in:
committed by
Daniel Schwierzeck
parent
0dfe04d6c8
commit
8cb4817d0f
@@ -19,4 +19,13 @@
|
||||
*/
|
||||
#define CONFIG_SYS_CACHELINE_SIZE ARCH_DMA_MINALIGN
|
||||
|
||||
/**
|
||||
* mips_cache_probe() - Probe the properties of the caches
|
||||
*
|
||||
* Call this to probe the properties such as line sizes of the caches
|
||||
* present in the system, if any. This must be done before cache maintenance
|
||||
* functions such as flush_cache may be called.
|
||||
*/
|
||||
void mips_cache_probe(void);
|
||||
|
||||
#endif /* __MIPS_CACHE_H__ */
|
||||
|
Reference in New Issue
Block a user