Skip to content

Commit 2f95947

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 d2fe0a8 commit 2f95947

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

soc/silabs/silabs_siwx91x/Kconfig.defconfig

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,11 @@ 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_SLEEPTIMER_TIMER || SILABS_SIWX91X_NWP
1618

1719
configdefault UART_NS16550_DW8250_DW_APB
1820
default y
@@ -35,11 +37,6 @@ endif # PM_DEVICE
3537

3638
if SILABS_SIWX91X_NWP
3739

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-
4340
# Wiseconnect needs more than 1024 bytes of main stack size to initialize
4441
# (especially with PM)
4542
configdefault MAIN_STACK_SIZE

0 commit comments

Comments
 (0)