-
CONFIG_CLFLUSH_DETECT
¶
Detect support of CLFLUSH instruction at runtime
Type: bool
Help¶
This option should be enabled if it is not known in advance whether the CPU supports the CLFLUSH instruction or not.
The CPU is queried at boot time to determine which of the multiple implementations of sys_cache_flush() linked into the image is the correct one to use.
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.
Direct dependencies¶
SOC_APOLLO_LAKE
|| SOC_ATOM
|| SOC_IA32
|| SOC_SERIES_QUARK_X1000
|| (CACHE_FLUSHING
&& X86
)
(Includes any dependencies from if’s and menus.)
Defaults¶
- “y” if
CACHE_FLUSHING
&&SOC_APOLLO_LAKE
- “y” if
CACHE_FLUSHING
&&SOC_ATOM
- “y” if
CACHE_FLUSHING
&&SOC_IA32
- “y” if
CACHE_FLUSHING
&&SOC_SERIES_QUARK_X1000
Kconfig definitions¶
At arch/x86/soc/apollo_lake/Kconfig.defconfig:19
Included via Kconfig:10
→ Kconfig.zephyr:20
Menu path: (top menu)
config CLFLUSH_DETECT bool default "y" ifCACHE_FLUSHING
&&SOC_APOLLO_LAKE
depends onSOC_APOLLO_LAKE
At arch/x86/soc/atom/Kconfig.defconfig:18
Included via Kconfig:10
→ Kconfig.zephyr:20
Menu path: (top menu)
config CLFLUSH_DETECT bool default "y" ifCACHE_FLUSHING
&&SOC_ATOM
depends onSOC_ATOM
At arch/x86/soc/ia32/Kconfig.defconfig:18
Included via Kconfig:10
→ Kconfig.zephyr:20
Menu path: (top menu)
config CLFLUSH_DETECT bool default "y" ifCACHE_FLUSHING
&&SOC_IA32
depends onSOC_IA32
At arch/x86/soc/intel_quark/quark_x1000/Kconfig.defconfig.series:18
Included via Kconfig:10
→ Kconfig.zephyr:20
→ arch/x86/soc/intel_quark/Kconfig.defconfig:1
Menu path: (top menu)
config CLFLUSH_DETECT bool default "y" ifCACHE_FLUSHING
&&SOC_SERIES_QUARK_X1000
depends onSOC_SERIES_QUARK_X1000
At arch/x86/Kconfig:236
Included via Kconfig:10
→ Kconfig.zephyr:23
→ arch/Kconfig:16
Menu path: (top menu) → X86 Architecture Options → Processor Capabilities
config CLFLUSH_DETECT bool prompt "Detect support of CLFLUSH instruction at runtime" ifCACHE_FLUSHING
&&X86
depends onCACHE_FLUSHING
&&X86
help This option should be enabled if it is not known in advance whether the CPU supports the CLFLUSH instruction or not. The CPU is queried at boot time to determine which of the multiple implementations of sys_cache_flush() linked into the image is the correct one to use. 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.
(Definitions include propagated dependencies, including from if’s and menus.)