cache: Rename CACHE_FLUSHING to CACHE_MANAGEMENT
The new APIs are not only dealing with cache flushing. Rename the Kconfig symbol to CACHE_MANAGEMENT to better reflect this change. Signed-off-by: Carlo Caione <ccaione@baylibre.com>
This commit is contained in:
parent
923b3be890
commit
20f59c8f1e
23 changed files with 30 additions and 30 deletions
|
@ -730,11 +730,11 @@ config CACHE_LINE_SIZE
|
|||
|
||||
Detect automatically at runtime by selecting CACHE_LINE_SIZE_DETECT.
|
||||
|
||||
config CACHE_FLUSHING
|
||||
bool "Enable cache flushing mechanism"
|
||||
config CACHE_MANAGEMENT
|
||||
bool "Enable cache management features"
|
||||
help
|
||||
This links in the cache flushing functions (d-cache and i-cache where
|
||||
possible).
|
||||
This links in the cache management functions (for d-cache and i-cache
|
||||
where possible).
|
||||
|
||||
endmenu
|
||||
|
||||
|
|
|
@ -24,7 +24,7 @@ zephyr_library_sources(
|
|||
vector_table.c
|
||||
)
|
||||
|
||||
zephyr_library_sources_ifdef(CONFIG_CACHE_FLUSHING cache.c)
|
||||
zephyr_library_sources_ifdef(CONFIG_CACHE_MANAGEMENT cache.c)
|
||||
zephyr_library_sources_ifdef(CONFIG_ARC_FIRQ fast_irq.S)
|
||||
|
||||
zephyr_library_sources_ifdef(CONFIG_IRQ_OFFLOAD irq_offload.c)
|
||||
|
|
|
@ -145,7 +145,7 @@ config CACHE_LINE_SIZE
|
|||
|
||||
config CLFLUSH_INSTRUCTION_SUPPORTED
|
||||
bool "CLFLUSH instruction supported"
|
||||
depends on !CLFLUSH_DETECT && CACHE_FLUSHING
|
||||
depends on !CLFLUSH_DETECT && CACHE_MANAGEMENT
|
||||
help
|
||||
An implementation of sys_cache_flush() that uses CLFLUSH is made
|
||||
available, instead of the one using WBINVD.
|
||||
|
@ -156,7 +156,7 @@ config CLFLUSH_INSTRUCTION_SUPPORTED
|
|||
|
||||
config CLFLUSH_DETECT
|
||||
bool "Detect support of CLFLUSH instruction at runtime"
|
||||
depends on CACHE_FLUSHING
|
||||
depends on CACHE_MANAGEMENT
|
||||
help
|
||||
This option should be enabled if it is not known in advance whether the
|
||||
CPU supports the CLFLUSH instruction or not.
|
||||
|
|
|
@ -36,7 +36,7 @@ __syscall void sys_cache_flush(void *addr, size_t size);
|
|||
|
||||
static inline void z_impl_sys_cache_flush(void *addr, size_t size)
|
||||
{
|
||||
if (IS_ENABLED(CONFIG_CACHE_FLUSHING)) {
|
||||
if (IS_ENABLED(CONFIG_CACHE_MANAGEMENT)) {
|
||||
arch_dcache_flush(addr, size);
|
||||
}
|
||||
}
|
||||
|
@ -61,7 +61,7 @@ __syscall void sys_cache_invd(void *addr, size_t size);
|
|||
|
||||
static inline void z_impl_sys_cache_invd(void *addr, size_t size)
|
||||
{
|
||||
if (IS_ENABLED(CONFIG_CACHE_FLUSHING)) {
|
||||
if (IS_ENABLED(CONFIG_CACHE_MANAGEMENT)) {
|
||||
arch_dcache_invd(addr, size);
|
||||
}
|
||||
}
|
||||
|
@ -76,7 +76,7 @@ static inline void z_impl_sys_cache_invd(void *addr, size_t size)
|
|||
*/
|
||||
static inline size_t sys_cache_line_size_get(void)
|
||||
{
|
||||
#ifdef CONFIG_CACHE_FLUSHING
|
||||
#ifdef CONFIG_CACHE_MANAGEMENT
|
||||
#ifdef CONFIG_CACHE_LINE_SIZE
|
||||
return CONFIG_CACHE_LINE_SIZE;
|
||||
#else
|
||||
|
@ -84,7 +84,7 @@ static inline size_t sys_cache_line_size_get(void)
|
|||
#endif /* CONFIG_CACHE_LINE_SIZE */
|
||||
#else
|
||||
return 0;
|
||||
#endif /* CONFIG_CACHE_FLUSHING */
|
||||
#endif /* CONFIG_CACHE_MANAGEMENT */
|
||||
}
|
||||
|
||||
#include <syscalls/cache.h>
|
||||
|
|
|
@ -816,7 +816,7 @@ void arch_gdb_step(void);
|
|||
* @{
|
||||
*/
|
||||
|
||||
#ifdef CONFIG_CACHE_FLUSHING
|
||||
#ifdef CONFIG_CACHE_MANAGEMENT
|
||||
/**
|
||||
*
|
||||
* @brief Flush d-cache lines to main memory
|
||||
|
|
|
@ -21,7 +21,7 @@ config HARVARD
|
|||
config ARC_FIRQ
|
||||
default y
|
||||
|
||||
config CACHE_FLUSHING
|
||||
config CACHE_MANAGEMENT
|
||||
default y
|
||||
|
||||
config FP_FPU_DA
|
||||
|
|
|
@ -21,7 +21,7 @@ config HARVARD
|
|||
config ARC_FIRQ
|
||||
default y
|
||||
|
||||
config CACHE_FLUSHING
|
||||
config CACHE_MANAGEMENT
|
||||
default n
|
||||
|
||||
config FP_FPU_DA
|
||||
|
|
|
@ -21,7 +21,7 @@ config HARVARD
|
|||
config ARC_FIRQ
|
||||
default y
|
||||
|
||||
config CACHE_FLUSHING
|
||||
config CACHE_MANAGEMENT
|
||||
default n
|
||||
|
||||
config FP_FPU_DA
|
||||
|
|
|
@ -21,7 +21,7 @@ config HARVARD
|
|||
config ARC_FIRQ
|
||||
default y
|
||||
|
||||
config CACHE_FLUSHING
|
||||
config CACHE_MANAGEMENT
|
||||
default y
|
||||
|
||||
config FP_FPU_DA
|
||||
|
|
|
@ -21,7 +21,7 @@ config HARVARD
|
|||
config ARC_FIRQ
|
||||
default y
|
||||
|
||||
config CACHE_FLUSHING
|
||||
config CACHE_MANAGEMENT
|
||||
default y
|
||||
|
||||
config FP_FPU_DA
|
||||
|
|
|
@ -21,7 +21,7 @@ config HARVARD
|
|||
config ARC_FIRQ
|
||||
default n
|
||||
|
||||
config CACHE_FLUSHING
|
||||
config CACHE_MANAGEMENT
|
||||
default y
|
||||
|
||||
config FP_FPU_DA
|
||||
|
|
|
@ -21,7 +21,7 @@ config HARVARD
|
|||
config ARC_FIRQ
|
||||
default y
|
||||
|
||||
config CACHE_FLUSHING
|
||||
config CACHE_MANAGEMENT
|
||||
default n
|
||||
|
||||
config FP_FPU_DA
|
||||
|
|
|
@ -26,7 +26,7 @@ config SYS_CLOCK_HW_CYCLES_PER_SEC
|
|||
config HARVARD
|
||||
default n
|
||||
|
||||
config CACHE_FLUSHING
|
||||
config CACHE_MANAGEMENT
|
||||
default y
|
||||
|
||||
config FP_FPU_DA
|
||||
|
|
|
@ -35,7 +35,7 @@ config ARC_FIRQ
|
|||
default n if BOARD_EM_STARTERKIT_R23
|
||||
default y if BOARD_EM_STARTERKIT_R22
|
||||
|
||||
config CACHE_FLUSHING
|
||||
config CACHE_MANAGEMENT
|
||||
default y
|
||||
|
||||
if (ARC_MPU_VER = 2)
|
||||
|
|
|
@ -30,7 +30,7 @@ config HARVARD
|
|||
config ARC_FIRQ
|
||||
default y
|
||||
|
||||
config CACHE_FLUSHING
|
||||
config CACHE_MANAGEMENT
|
||||
default y
|
||||
|
||||
config FP_FPU_DA
|
||||
|
|
|
@ -30,7 +30,7 @@ config HARVARD
|
|||
config ARC_FIRQ
|
||||
default y
|
||||
|
||||
config CACHE_FLUSHING
|
||||
config CACHE_MANAGEMENT
|
||||
default y
|
||||
|
||||
if (ARC_MPU_VER = 2)
|
||||
|
|
|
@ -24,7 +24,7 @@ config HARVARD
|
|||
config ARC_FIRQ
|
||||
default y
|
||||
|
||||
config CACHE_FLUSHING
|
||||
config CACHE_MANAGEMENT
|
||||
default y
|
||||
|
||||
endif # SOC_NSIM_HS
|
||||
|
|
|
@ -25,7 +25,7 @@ config HARVARD
|
|||
config ARC_FIRQ
|
||||
default y
|
||||
|
||||
config CACHE_FLUSHING
|
||||
config CACHE_MANAGEMENT
|
||||
default y
|
||||
|
||||
config ARC_CONNECT
|
||||
|
|
|
@ -30,7 +30,7 @@ config HARVARD
|
|||
config ARC_FIRQ
|
||||
default n
|
||||
|
||||
config CACHE_FLUSHING
|
||||
config CACHE_MANAGEMENT
|
||||
default y
|
||||
|
||||
endif # SOC_NSIM_SEM
|
||||
|
|
|
@ -42,7 +42,7 @@ endif # APIC_TIMER_TSC
|
|||
endif # APIC_TIMER
|
||||
|
||||
config CLFLUSH_DETECT
|
||||
default y if CACHE_FLUSHING
|
||||
default y if CACHE_MANAGEMENT
|
||||
|
||||
config X86_DYNAMIC_IRQ_STUBS
|
||||
default 16
|
||||
|
|
|
@ -12,7 +12,7 @@ config SYS_CLOCK_HW_CYCLES_PER_SEC
|
|||
default 25000000 if HPET_TIMER
|
||||
|
||||
config CLFLUSH_DETECT
|
||||
default y if CACHE_FLUSHING
|
||||
default y if CACHE_MANAGEMENT
|
||||
|
||||
if BT_UART
|
||||
|
||||
|
|
|
@ -42,7 +42,7 @@ endif # APIC_TIMER_TSC
|
|||
endif # APIC_TIMER
|
||||
|
||||
config CLFLUSH_DETECT
|
||||
default y if CACHE_FLUSHING
|
||||
default y if CACHE_MANAGEMENT
|
||||
|
||||
config X86_DYNAMIC_IRQ_STUBS
|
||||
default 16
|
||||
|
|
|
@ -12,6 +12,6 @@ config SYS_CLOCK_HW_CYCLES_PER_SEC
|
|||
default 25000000 if HPET_TIMER
|
||||
|
||||
config CLFLUSH_DETECT
|
||||
default y if CACHE_FLUSHING
|
||||
default y if CACHE_MANAGEMENT
|
||||
|
||||
endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue