arch: custom cpu_idle and cpu_atomic harmonization

custom arch_cpu_idle and arch_cpu_atomic_idle implementation was done
differently on different architectures. riscv implemented those as weak
symbols, xtensa used a kconfig and all other architectures did not
really care, but this was a global kconfig that should apply to all
architectures.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
This commit is contained in:
Anas Nashif 2024-07-04 14:37:08 -04:00 committed by Carles Cufí
commit 7f52fc4188
12 changed files with 49 additions and 3 deletions

View file

@ -18,6 +18,7 @@ config RISCV_CORE_NORDIC_VPR
select RISCV_SOC_CONTEXT_SAVE
select HAS_FLASH_LOAD_OFFSET
select ARCH_CPU_IDLE_CUSTOM
select ARCH_CPU_ATOMIC_IDLE_CUSTOM
select INCLUDE_RESET_VECTOR
help
Enable support for the RISC-V Nordic VPR core.