Skip to content

Commit ba4bbe9

Browse files
aescolarjhedberg
authored andcommitted
Revert "tests: kernel: update test case with sys_clock_hw_cycles_per_sec"
This reverts commit fd8ca83. #69705 Introduced a regression in main in which tests/subsys/logging/log_timestamp started failing. (See #72344 for more info). Let's revert the PR. It can be submitted after with the issue fixed. Signed-off-by: Alberto Escolar Piedras <[email protected]>
1 parent b1c3ba7 commit ba4bbe9

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

tests/kernel/common/src/boot_delay.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
*/
1919
ZTEST(boot_delay, test_bootdelay)
2020
{
21-
if (sys_clock_hw_cycles_per_sec() > 1000000000) {
21+
if (CONFIG_SYS_CLOCK_HW_CYCLES_PER_SEC > 1000000000) {
2222
/* Systems with very fast counters (like the x86 TSC)
2323
* and long firmware startup (often 10+ seconds on a
2424
* EFI PC!) can easily roll this over during startup,

tests/kernel/threads/no-multithreading/src/main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
ZTEST(no_multithreading, test_k_busy_wait)
1212
{
1313
int64_t now = k_uptime_get();
14-
uint32_t watchdog = sys_clock_hw_cycles_per_sec();
14+
uint32_t watchdog = CONFIG_SYS_CLOCK_HW_CYCLES_PER_SEC;
1515

1616
while (k_uptime_get() != now) {
1717
/* Wait until uptime progresses */

0 commit comments

Comments
 (0)