ostest/hrtimer: sync hrtimer test with latest updates

Synchronize the hrtimer ostest with the latest hrtimer changes.

Signed-off-by: Chengdong Wang <wangchengdong@lixiang.com>
This commit is contained in:
wangchengdong 2026-01-19 13:23:50 +08:00 committed by Alan C. Assis
parent 5595a01fcd
commit df30f84f33

View file

@ -211,11 +211,12 @@ void hrtimer_test(void)
/* Initialize the high-resolution timer */
hrtimer_init(&hrtimer_test.timer, test_hrtimer_callback);
hrtimer_init(&hrtimer_test.timer);
/* Start the timer with 500ms relative timeout */
ret = hrtimer_start(&hrtimer_test.timer,
test_hrtimer_callback,
hrtimer_test.period,
HRTIMER_MODE_REL);