Skip to content

Commit 85a1cba

Browse files
committed
fix: tickfull/tickless systimer inits are swapped
Signed-off-by: Alp Sayin <alpsayin@gmail.com>
1 parent 417f564 commit 85a1cba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/timer/xlnx_tmrctr.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@ static int sys_clock_driver_init(void)
266266
return status;
267267
}
268268

269-
#if !defined(CONFIG_TICKLESS_KERNEL)
269+
#ifdef CONFIG_TICKLESS_KERNEL
270270
xlnx_tmrctr_set_reset_value(TICK_TIMER_COUNTER_NUMBER, CYCLES_NEXT_MAX);
271271
xlnx_tmrctr_set_options(TICK_TIMER_COUNTER_NUMBER, XTC_CSR_ENABLE_INT_MASK |
272272
XTC_CSR_DOWN_COUNT_MASK);

0 commit comments

Comments
 (0)