Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

arch: nios2: timing: Fix timing cycles rollover #83376

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

golowanow
Copy link
Member

@golowanow golowanow commented Dec 25, 2024

Fix arch_timing_cycles_get() to prevent overflow on the clock rollover.

The issue is observable on tests/benchmarks/wait_queues and tests/benchmarks/sched_queues with BENCHMARK_NUM_ITERATIONS value large enough, e.g. default 1000.

Fixes #83377

Fix arch_timing_cycles_get() to prevent overflow on the clock rollover.

The issue is observable on tests/benchmarks/wait_queues and
tests/benchmarks/sched_queues with BENCHMARK_NUM_ITERATIONS is large
enough, e.g. default 1000.

Signed-off-by: Dmitrii Golovanov <dmitrii.golovanov@intel.com>
@golowanow golowanow marked this pull request as ready for review December 25, 2024 06:04
@zephyrbot zephyrbot added the area: NIOS2 NIOS2 Architecture label Dec 25, 2024
@zephyrbot zephyrbot requested a review from nashif December 25, 2024 06:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: NIOS2 NIOS2 Architecture
Projects
None yet
Development

Successfully merging this pull request may close these issues.

nios2: tests: benchmarks: Invalid queue timings
4 participants