cache: Rework cache API
The cache operations must be quick, optimized and possibly inlined. The current API is clunky, functions are not inlined and passing parameters around that are basically always known at compile time. In this patch we rework the cache functions to allow us to get rid of useless parameters and make inlining easier. In particular this changeset is doing three things: 1. `CONFIG_HAS_ARCH_CACHE` is now `CONFIG_ARCH_CACHE` and `CONFIG_HAS_EXTERNAL_CACHE` is now `CONFIG_EXTERNAL_CACHE` 2. The cache API has been reworked. 3. Comments are added. Signed-off-by: Carlo Caione <ccaione@baylibre.com>
This commit is contained in:
parent
afcf28ee37
commit
189cd1f4a2
10 changed files with 720 additions and 197 deletions
|
@ -16,7 +16,7 @@ config DCACHE_LINE_SIZE
|
|||
default 32
|
||||
|
||||
choice CACHE_TYPE
|
||||
default HAS_EXTERNAL_CACHE
|
||||
default EXTERNAL_CACHE
|
||||
endchoice
|
||||
|
||||
endif # SOC_SERIES_AST10X0
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue