kconfig: Unify CACHE_* options
The kconfig options to configure the cache flushing framework are currently living in the arch-specific kconfigs of ARC and X86 (32-bit) architectures even though these are defining the same things. Move the common symbols in one place accessible by all the architectures and create a menu for those. Leave the default values in the arch-specific locations. Signed-off-by: Carlo Caione <ccaione@baylibre.com>
This commit is contained in:
parent
52ec40cbdf
commit
923b3be890
3 changed files with 28 additions and 55 deletions
|
@ -140,25 +140,8 @@ config LAZY_FPU_SHARING
|
|||
|
||||
endmenu
|
||||
|
||||
config CACHE_LINE_SIZE_DETECT
|
||||
bool "Detect cache line size at runtime"
|
||||
default y
|
||||
help
|
||||
This option enables querying the CPUID register for finding the cache line
|
||||
size at the expense of taking more memory and code and a slightly increased
|
||||
boot time.
|
||||
|
||||
If the CPU's cache line size is known in advance, disable this option and
|
||||
manually enter the value for CACHE_LINE_SIZE.
|
||||
|
||||
config CACHE_LINE_SIZE
|
||||
int "Cache line size" if !CACHE_LINE_SIZE_DETECT
|
||||
default 64 if CPU_ATOM
|
||||
default 0
|
||||
help
|
||||
Size in bytes of a CPU cache line.
|
||||
|
||||
Detect automatically at runtime by selecting CACHE_LINE_SIZE_DETECT.
|
||||
|
||||
config CLFLUSH_INSTRUCTION_SUPPORTED
|
||||
bool "CLFLUSH instruction supported"
|
||||
|
@ -185,18 +168,6 @@ config CLFLUSH_DETECT
|
|||
If the CPU's support (or lack thereof) of CLFLUSH is known in advance, then
|
||||
disable this option and set CLFLUSH_INSTRUCTION_SUPPORTED as appropriate.
|
||||
|
||||
config ARCH_CACHE_FLUSH_DETECT
|
||||
bool
|
||||
default y
|
||||
depends on CLFLUSH_DETECT
|
||||
|
||||
config CACHE_FLUSHING
|
||||
bool "Enable cache flushing mechanism"
|
||||
help
|
||||
This links in the sys_cache_flush() function. A mechanism for flushing the
|
||||
cache must be selected as well. By default, that mechanism is discovered at
|
||||
runtime.
|
||||
|
||||
config X86_DYNAMIC_IRQ_STUBS
|
||||
int "Number of dynamic interrupt stubs"
|
||||
depends on DYNAMIC_INTERRUPTS
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue