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

[PATCH v3] linux-gen: cpu: optimize aarch64 odp_cpu_cycles() implementation #1879

Merged
merged 2 commits into from
Aug 23, 2023

Conversation

MatiasElo
Copy link
Collaborator

Implement odp_cpu_cycles() function using 'cntvct_el0' virtual counter
register on aarch64.

@odpbuild odpbuild changed the title linux-gen: cpu: optimize aarch64 odp_cpu_cycles() implementation [PATCH v1] linux-gen: cpu: optimize aarch64 odp_cpu_cycles() implementation Aug 17, 2023
@odpbuild odpbuild changed the title [PATCH v1] linux-gen: cpu: optimize aarch64 odp_cpu_cycles() implementation [PATCH v2] linux-gen: cpu: optimize aarch64 odp_cpu_cycles() implementation Aug 23, 2023
Add new tests for CPU API functions odp_cpu_hz_id(), odp_cpu_hz_max_id(),
and odp_cpu_cycles_resolution().

Signed-off-by: Matias Elo <matias.elo@nokia.com>
Reviewed-by: Tuomas Taipale <tuomas.taipale@nokia.com>
Implement odp_cpu_cycles() function using 'cntvct_el0' virtual counter
register on aarch64. With a 1 GHz time counter the ODP CPU cycle count
wraps every 78 hours.

Signed-off-by: Matias Elo <matias.elo@nokia.com>
Reviewed-by: Tuomas Taipale <tuomas.taipale@nokia.com>
@odpbuild odpbuild changed the title [PATCH v2] linux-gen: cpu: optimize aarch64 odp_cpu_cycles() implementation [PATCH v3] linux-gen: cpu: optimize aarch64 odp_cpu_cycles() implementation Aug 23, 2023
@MatiasElo MatiasElo merged commit 9dd86d4 into OpenDataPlane:master Aug 23, 2023
174 checks passed
@MatiasElo MatiasElo deleted the dev/arm64-cpu-cycles branch August 23, 2023 13:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants