zephyr/arch
Dmitrii Golovanov 9c7288e86e arch: common: timing: Fix timing cycles 32bit rollover
Fix `arch_timing_cycles_get()` to prevent overflow on 32bit cycles
rollover. Also make `arch_timing_counter_get()` to work 64bit when
`CONFIG_TIMER_HAS_64BIT_CYCLE_COUNTER` is set.

The issue was observable, for example when `tests/benchmarks/wait_queues`
or `tests/benchmarks/sched_queues` were executed on qemu for `mps2/an385`
and the benchmark has its iterations large enough as the default
BENCHMARK_NUM_ITERATIONS=1000.

Signed-off-by: Dmitrii Golovanov <dmitrii.golovanov@intel.com>
2025-01-17 20:07:16 +01:00
..
arc Revert "arch: deprecate _current" 2025-01-10 07:49:08 +01:00
arm arch: arm: fix: pm_s2ram with CONFIG_DEBUG_THREAD_INFO 2025-01-14 15:39:30 +01:00
arm64 Revert "arch: deprecate _current" 2025-01-10 07:49:08 +01:00
common arch: common: timing: Fix timing cycles 32bit rollover 2025-01-17 20:07:16 +01:00
mips kernel: arch: move arch_swap() declaration 2024-12-11 21:33:49 +01:00
nios2 arch: nios2: timing: Fix timing cycles rollover 2025-01-06 17:13:10 +00:00
posix kernel: move current thread pointer management to core code 2025-01-10 07:49:08 +01:00
riscv llext: Fix off-by-one in RISC-V truncation check 2025-01-10 14:47:39 +01:00
sparc Revert "arch: deprecate _current" 2025-01-10 07:49:08 +01:00
x86 Revert "arch: deprecate _current" 2025-01-10 07:49:08 +01:00
xtensa Revert "arch: deprecate _current" 2025-01-10 07:49:08 +01:00
archs.yml hwmv2: Introduce Hardware model version 2 and convert devices 2024-03-02 16:56:33 -05:00
CMakeLists.txt
Kconfig arch: local ISR table declaration: Remove experimental label 2024-12-05 12:29:58 +01:00
Kconfig.v1 hwmv2: Introduce Hardware model version 2 and convert devices 2024-03-02 16:56:33 -05:00
Kconfig.v2 hwmv2: Introduce Hardware model version 2 and convert devices 2024-03-02 16:56:33 -05:00