Skip to content

Commit e20d519

Browse files
soc: silabs: siwx91x: unique place for sys clock tick definition
This patch put in the same place the default value for SYS_CLOCK_TICKS_PER_SEC. It also apply the sleeptimer clock frequency when sleeptimer is used for sys clock. Signed-off-by: Martin Hoff <[email protected]>
1 parent 6a0f685 commit e20d519

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

soc/silabs/silabs_siwx91x/Kconfig.defconfig

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,12 @@ configdefault SYS_CLOCK_HW_CYCLES_PER_SEC
1010
default $(dt_node_int_prop_int,/cpus/cpu@0,clock-frequency) if CORTEX_M_SYSTICK
1111
default 32768
1212

13+
# WiseConnect create threads with realtime priority. Default (10kHz) clock tick
14+
# prevent proper use of the system with these threads.
1315
configdefault SYS_CLOCK_TICKS_PER_SEC
1416
default 128 if !TICKLESS_KERNEL && SILABS_SLEEPTIMER_TIMER
15-
default 1024 if SILABS_SLEEPTIMER_TIMER
17+
default 1024 if SILABS_SIWX91X_NWP
18+
default 32768 if SILABS_SLEEPTIMER_TIMER
1619

1720
configdefault UART_NS16550_DW8250_DW_APB
1821
default y
@@ -35,11 +38,6 @@ endif # PM_DEVICE
3538

3639
if SILABS_SIWX91X_NWP
3740

38-
# WiseConnect create threads with realtime priority. Default (10kHz) clock tick
39-
# prevent proper use of the system with these threads.
40-
config SYS_CLOCK_TICKS_PER_SEC
41-
default 1024
42-
4341
# Wiseconnect needs more than 1024 bytes of main stack size to initialize
4442
# (especially with PM)
4543
configdefault MAIN_STACK_SIZE

0 commit comments

Comments
 (0)