schedstatistics: Convert to ztimer#17216
Conversation
|
Also includes conversion of |
tests/periph_spi is now included in this PR
Can you show some log on the spi part? |
|
@bergzand are there no updates required on Kconfig? |
grml, might have forgotten to update the |
Added, thanks for the heads-up. |
diff --git a/tests/periph_spi_dma/app.config.test b/tests/periph_spi_dma/app.config.test
index 29981de4c5..e00e33a81b 100644
--- a/tests/periph_spi_dma/app.config.test
+++ b/tests/periph_spi_dma/app.config.test
@@ -6,4 +6,6 @@ CONFIG_MODULE_PERIPH_SPI=y
CONFIG_MODULE_SHELL=y
CONFIG_MODULE_SHELL_COMMANDS=y
CONFIG_MODULE_SCHEDSTATISTICS=y
-CONFIG_MODULE_XTIMER=y
+CONFIG_MODULE_ZTIMER=y
+CONFIG_MODULE_ZTIMER_SEC=y
+CONFIG_ZTIMER_USEC=y |
|
And blacklisting: |
|
done, thanks
and done. |
54ed6a6 to
cffa260
Compare
|
and squashed. |
sys/schedstatistics/Kconfig
Outdated
| config MODULE_SCHEDSTATISTICS | ||
| bool "Scheduler statistics support" | ||
| depends on MODULE_XTIMER | ||
| depends on MODULE_ZTIMER_USEC |
There was a problem hiding this comment.
| depends on MODULE_ZTIMER_USEC | |
| select ZTIMER_USEC |
tests/periph_spi_dma/app.config.test
Outdated
| CONFIG_MODULE_XTIMER=y | ||
| CONFIG_MODULE_ZTIMER=y | ||
| CONFIG_MODULE_ZTIMER_SEC=y | ||
| CONFIG_MODULE_ZTIMER_USEC=y |
There was a problem hiding this comment.
| CONFIG_MODULE_ZTIMER_USEC=y | |
| CONFIG_ZTIMER_USEC=y |
cffa260 to
a6910f1
Compare
fjmolinas
left a comment
There was a problem hiding this comment.
ACK, tested on nucleo-l152re works as expected:
2021-12-07 20:21:39,151 # pid | name | state Q | pri | stack ( used) ( free) | base addr | current | runtime | switches | runtime_usec
2021-12-07 20:21:39,181 # - | isr_stack | - - | - | 512 ( 232) ( 280) | 0x20000000 | 0x200001c8
2021-12-07 20:21:39,229 # 1 | main | running Q | 7 | 1536 ( 808) ( 728) | 0x2000182c | 0x20001b0c | 2.170% | 19530 | 2145751
2021-12-07 20:21:39,271 # 2 | thread | bl mutex _ | 6 | 1024 ( 412) ( 612) | 0x2000042c | 0x20000744 | 10.463% | 60596 | 10345876
2021-12-07 20:21:39,319 # 3 | thread | bl mutex _ | 6 | 1024 ( 412) ( 612) | 0x2000082c | 0x20000b44 | 15.066% | 60626 | 14898045
2021-12-07 20:21:39,367 # 4 | thread | bl mutex _ | 6 | 1024 ( 412) ( 612) | 0x20000c2c | 0x20000f44 | 19.675% | 60656 | 19454675
2021-12-07 20:21:39,415 # 5 | thread | bl mutex _ | 6 | 1024 ( 412) ( 612) | 0x2000102c | 0x20001344 | 24.287% | 60686 | 24015775
2021-12-07 20:21:39,457 # 6 | thread | bl mutex _ | 6 | 1024 ( 412) ( 612) | 0x2000142c | 0x20001744 | 5.878% | 60716 | 5812808
2021-12-07 20:21:39,481 # | SUM | | | 7168 ( 3100) ( 4068)
Contribution description
Another ztimer conversion, this time
sys/schedstatisticsTesting procedure
there is a test in
tests/ps_schedstatisticsIssues/PRs references
Another one for #17111