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

xtos: perf_cnt: use correct timing_counter_get() #9016

Merged
merged 1 commit into from
Apr 15, 2024

Conversation

kv2019i
Copy link
Collaborator

@kv2019i kv2019i commented Apr 9, 2024

Do not use arch_timing_counter() directly, but instead use the public timing_counter_get().

@kv2019i
Copy link
Collaborator Author

kv2019i commented Apr 9, 2024

@tobonex btw, here's a portable way to get ccount (timing_counter_get() of zephyr/timing/timing.h)


#include <zephyr/timing/timing.h>

#ifdef CONFIG_TIMING_FUNCTIONS
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

indentation... would be better to either leave as is or fix consistently

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ack, @lyakh can you recheck?

Do not use arch_timing_counter() directly, but instead use
the public timing_counter_get().

Signed-off-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>
@kv2019i
Copy link
Collaborator Author

kv2019i commented Apr 15, 2024

@wszypelt Hmm, I wonder what's going on with this. One TGL fail in quickbuild but the log shows "System.BadImageFormatException: Field token out of range". The captured file seems fine, so not sure what is happening.

@lgirdwood lgirdwood merged commit e9b238f into thesofproject:main Apr 15, 2024
44 of 45 checks passed
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.

4 participants