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:
Carlo Caione 2020-12-03 10:49:00 +01:00 committed by Anas Nashif
commit 20f59c8f1e
23 changed files with 30 additions and 30 deletions

View file

@ -730,11 +730,11 @@ config CACHE_LINE_SIZE
Detect automatically at runtime by selecting CACHE_LINE_SIZE_DETECT. Detect automatically at runtime by selecting CACHE_LINE_SIZE_DETECT.
config CACHE_FLUSHING config CACHE_MANAGEMENT
bool "Enable cache flushing mechanism" bool "Enable cache management features"
help help
This links in the cache flushing functions (d-cache and i-cache where This links in the cache management functions (for d-cache and i-cache
possible). where possible).
endmenu endmenu

View file

@ -24,7 +24,7 @@ zephyr_library_sources(
vector_table.c 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_ARC_FIRQ fast_irq.S)
zephyr_library_sources_ifdef(CONFIG_IRQ_OFFLOAD irq_offload.c) zephyr_library_sources_ifdef(CONFIG_IRQ_OFFLOAD irq_offload.c)

View file

@ -145,7 +145,7 @@ config CACHE_LINE_SIZE
config CLFLUSH_INSTRUCTION_SUPPORTED config CLFLUSH_INSTRUCTION_SUPPORTED
bool "CLFLUSH instruction supported" bool "CLFLUSH instruction supported"
depends on !CLFLUSH_DETECT && CACHE_FLUSHING depends on !CLFLUSH_DETECT && CACHE_MANAGEMENT
help help
An implementation of sys_cache_flush() that uses CLFLUSH is made An implementation of sys_cache_flush() that uses CLFLUSH is made
available, instead of the one using WBINVD. available, instead of the one using WBINVD.
@ -156,7 +156,7 @@ config CLFLUSH_INSTRUCTION_SUPPORTED
config CLFLUSH_DETECT config CLFLUSH_DETECT
bool "Detect support of CLFLUSH instruction at runtime" bool "Detect support of CLFLUSH instruction at runtime"
depends on CACHE_FLUSHING depends on CACHE_MANAGEMENT
help help
This option should be enabled if it is not known in advance whether the This option should be enabled if it is not known in advance whether the
CPU supports the CLFLUSH instruction or not. CPU supports the CLFLUSH instruction or not.

View file

@ -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) 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); 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) 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); 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) static inline size_t sys_cache_line_size_get(void)
{ {
#ifdef CONFIG_CACHE_FLUSHING #ifdef CONFIG_CACHE_MANAGEMENT
#ifdef CONFIG_CACHE_LINE_SIZE #ifdef CONFIG_CACHE_LINE_SIZE
return CONFIG_CACHE_LINE_SIZE; return CONFIG_CACHE_LINE_SIZE;
#else #else
@ -84,7 +84,7 @@ static inline size_t sys_cache_line_size_get(void)
#endif /* CONFIG_CACHE_LINE_SIZE */ #endif /* CONFIG_CACHE_LINE_SIZE */
#else #else
return 0; return 0;
#endif /* CONFIG_CACHE_FLUSHING */ #endif /* CONFIG_CACHE_MANAGEMENT */
} }
#include <syscalls/cache.h> #include <syscalls/cache.h>

View file

@ -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 * @brief Flush d-cache lines to main memory

View file

@ -21,7 +21,7 @@ config HARVARD
config ARC_FIRQ config ARC_FIRQ
default y default y
config CACHE_FLUSHING config CACHE_MANAGEMENT
default y default y
config FP_FPU_DA config FP_FPU_DA

View file

@ -21,7 +21,7 @@ config HARVARD
config ARC_FIRQ config ARC_FIRQ
default y default y
config CACHE_FLUSHING config CACHE_MANAGEMENT
default n default n
config FP_FPU_DA config FP_FPU_DA

View file

@ -21,7 +21,7 @@ config HARVARD
config ARC_FIRQ config ARC_FIRQ
default y default y
config CACHE_FLUSHING config CACHE_MANAGEMENT
default n default n
config FP_FPU_DA config FP_FPU_DA

View file

@ -21,7 +21,7 @@ config HARVARD
config ARC_FIRQ config ARC_FIRQ
default y default y
config CACHE_FLUSHING config CACHE_MANAGEMENT
default y default y
config FP_FPU_DA config FP_FPU_DA

View file

@ -21,7 +21,7 @@ config HARVARD
config ARC_FIRQ config ARC_FIRQ
default y default y
config CACHE_FLUSHING config CACHE_MANAGEMENT
default y default y
config FP_FPU_DA config FP_FPU_DA

View file

@ -21,7 +21,7 @@ config HARVARD
config ARC_FIRQ config ARC_FIRQ
default n default n
config CACHE_FLUSHING config CACHE_MANAGEMENT
default y default y
config FP_FPU_DA config FP_FPU_DA

View file

@ -21,7 +21,7 @@ config HARVARD
config ARC_FIRQ config ARC_FIRQ
default y default y
config CACHE_FLUSHING config CACHE_MANAGEMENT
default n default n
config FP_FPU_DA config FP_FPU_DA

View file

@ -26,7 +26,7 @@ config SYS_CLOCK_HW_CYCLES_PER_SEC
config HARVARD config HARVARD
default n default n
config CACHE_FLUSHING config CACHE_MANAGEMENT
default y default y
config FP_FPU_DA config FP_FPU_DA

View file

@ -35,7 +35,7 @@ config ARC_FIRQ
default n if BOARD_EM_STARTERKIT_R23 default n if BOARD_EM_STARTERKIT_R23
default y if BOARD_EM_STARTERKIT_R22 default y if BOARD_EM_STARTERKIT_R22
config CACHE_FLUSHING config CACHE_MANAGEMENT
default y default y
if (ARC_MPU_VER = 2) if (ARC_MPU_VER = 2)

View file

@ -30,7 +30,7 @@ config HARVARD
config ARC_FIRQ config ARC_FIRQ
default y default y
config CACHE_FLUSHING config CACHE_MANAGEMENT
default y default y
config FP_FPU_DA config FP_FPU_DA

View file

@ -30,7 +30,7 @@ config HARVARD
config ARC_FIRQ config ARC_FIRQ
default y default y
config CACHE_FLUSHING config CACHE_MANAGEMENT
default y default y
if (ARC_MPU_VER = 2) if (ARC_MPU_VER = 2)

View file

@ -24,7 +24,7 @@ config HARVARD
config ARC_FIRQ config ARC_FIRQ
default y default y
config CACHE_FLUSHING config CACHE_MANAGEMENT
default y default y
endif # SOC_NSIM_HS endif # SOC_NSIM_HS

View file

@ -25,7 +25,7 @@ config HARVARD
config ARC_FIRQ config ARC_FIRQ
default y default y
config CACHE_FLUSHING config CACHE_MANAGEMENT
default y default y
config ARC_CONNECT config ARC_CONNECT

View file

@ -30,7 +30,7 @@ config HARVARD
config ARC_FIRQ config ARC_FIRQ
default n default n
config CACHE_FLUSHING config CACHE_MANAGEMENT
default y default y
endif # SOC_NSIM_SEM endif # SOC_NSIM_SEM

View file

@ -42,7 +42,7 @@ endif # APIC_TIMER_TSC
endif # APIC_TIMER endif # APIC_TIMER
config CLFLUSH_DETECT config CLFLUSH_DETECT
default y if CACHE_FLUSHING default y if CACHE_MANAGEMENT
config X86_DYNAMIC_IRQ_STUBS config X86_DYNAMIC_IRQ_STUBS
default 16 default 16

View file

@ -12,7 +12,7 @@ config SYS_CLOCK_HW_CYCLES_PER_SEC
default 25000000 if HPET_TIMER default 25000000 if HPET_TIMER
config CLFLUSH_DETECT config CLFLUSH_DETECT
default y if CACHE_FLUSHING default y if CACHE_MANAGEMENT
if BT_UART if BT_UART

View file

@ -42,7 +42,7 @@ endif # APIC_TIMER_TSC
endif # APIC_TIMER endif # APIC_TIMER
config CLFLUSH_DETECT config CLFLUSH_DETECT
default y if CACHE_FLUSHING default y if CACHE_MANAGEMENT
config X86_DYNAMIC_IRQ_STUBS config X86_DYNAMIC_IRQ_STUBS
default 16 default 16

View file

@ -12,6 +12,6 @@ config SYS_CLOCK_HW_CYCLES_PER_SEC
default 25000000 if HPET_TIMER default 25000000 if HPET_TIMER
config CLFLUSH_DETECT config CLFLUSH_DETECT
default y if CACHE_FLUSHING default y if CACHE_MANAGEMENT
endif endif