sys/benchmark: Convert to ztimer#17126
Merged
kaspar030 merged 2 commits intoRIOT-OS:masterfrom Nov 15, 2021
Merged
Conversation
5e28680 to
d137e8c
Compare
19e56ab to
9fd09cf
Compare
Member
Author
|
Force pushed the missing kconfig bits |
9fd09cf to
9df794e
Compare
9df794e to
f1feaa2
Compare
Member
Author
|
All green! |
gschorcht
reviewed
Nov 29, 2021
| config MODULE_BENCHMARK | ||
| bool "Simple benchmarks support" | ||
| depends on MODULE_XTIMER | ||
| depends on MODULE_ZTIMER_USEC |
Contributor
There was a problem hiding this comment.
Shouldn't this be select MODULE_ZTIMER_USEC?
sys/Makefile.dep pulls in ztimer_usec automatically if benchmark is used
Lines 574 to 576 in c84a40a
Contributor
There was a problem hiding this comment.
@leandrolanzieri @bergzand ping.
I have an application here that uses benchmark. With this PR it is now necessary also to use ztimer_usec in application's makefile to be compatible with Kconfig even though ztimer_usec is pulled in automatically by the benchmark module. Was there any reason not to select ztimer_usec in Kconfig with benchmark?
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Contribution description
Converts the benchmark utility to use ztimer
Testing procedure
tests/bench_runtime_coreapis/makes use of thisOn master (nrf52840dk)
This PR (nrf52840dk)
Issues/PRs references
Another ztimer conversion