zephyr/arch/posix
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Anas Nashif 25d08114e9 arch: gate idle notification hooks on SYS_IDLE_HOOKS
The architecture idle paths call sys_trace_idle() and
sys_trace_idle_exit() to notify subscribers when the CPU enters and
leaves the idle state. These calls were guarded by CONFIG_TRACING,
which tied idle-time accounting to the tracing subsystem even though
no tracing backend is required to service the hooks.

Introduce a hidden Kconfig symbol, SYS_IDLE_HOOKS, that any subsystem
needing these notifications can select, and have TRACING select it.
Switch the idle-path guards in every architecture and SoC that emits
the hooks from CONFIG_TRACING to CONFIG_SYS_IDLE_HOOKS. Because
TRACING selects the new symbol, existing tracing behaviour is
unchanged; the change only lets non-tracing consumers receive the
hooks.

This is a prerequisite for building the CPU load module without the
tracing subsystem.

Assisted-by: Claude:claude-opus-4-8
Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2026-07-17 11:55:28 -04:00
..
core arch: gate idle notification hooks on SYS_IDLE_HOOKS 2026-07-17 11:55:28 -04:00
include arch posix: Optionally use stack bounds of pthread 2026-03-10 12:35:42 +01:00
aarch64.cmake arch/posix: Support cross-compiling 2025-12-05 13:38:48 +02:00
arm.cmake arch/posix: Support cross-compiling 2025-12-05 13:38:48 +02:00
CMakeLists.txt arch: posix: cmake: Minor clarifications 2026-01-03 10:20:34 +01:00
Kconfig arch posix: Optionally use stack bounds of pthread 2026-03-10 12:35:42 +01:00
Kconfig.natsim_optional nsi: move nsos_fcntl to more generic nsi_fcntl 2026-04-17 10:40:50 +02:00
natsim_optional.cmake nsi: move nsos_fcntl to more generic nsi_fcntl 2026-04-17 10:40:50 +02:00
x86_64.cmake arch/posix: Support cross-compiling 2025-12-05 13:38:48 +02:00