From b4ddc10b424b3aed739c46aa08602f8517eb484f Mon Sep 17 00:00:00 2001 From: Wayne Ren Date: Fri, 25 Oct 2019 07:52:35 +0800 Subject: [PATCH] soc: arc: enable SYSTEM_CLOCK_SLOPPY for SMP in SMP, arc uses gfrc as wall clock, so it's ok to enable SYSTEM_CLOCK_SLOPPY to avoid unnecessary interrupts Signed-off-by: Wayne Ren --- soc/arc/snps_arc_hsdk/Kconfig.defconfig | 7 +++++++ soc/arc/snps_nsim/Kconfig.defconfig.hs_smp | 9 ++++++++- 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/soc/arc/snps_arc_hsdk/Kconfig.defconfig b/soc/arc/snps_arc_hsdk/Kconfig.defconfig index 105d7d62ab8..2eb157dbc76 100644 --- a/soc/arc/snps_arc_hsdk/Kconfig.defconfig +++ b/soc/arc/snps_arc_hsdk/Kconfig.defconfig @@ -36,6 +36,13 @@ config ARC_CONNECT config MP_NUM_CPUS default 4 +if SMP +# When SMP is enabled, use gfrc as wall clock, so sloppy +# idle should be y +config SYSTEM_CLOCK_SLOPPY_IDLE + default y +endif + if SERIAL config UART_NS16550 diff --git a/soc/arc/snps_nsim/Kconfig.defconfig.hs_smp b/soc/arc/snps_nsim/Kconfig.defconfig.hs_smp index 4a6d3e665cb..81232589d9d 100644 --- a/soc/arc/snps_nsim/Kconfig.defconfig.hs_smp +++ b/soc/arc/snps_nsim/Kconfig.defconfig.hs_smp @@ -33,4 +33,11 @@ config ARC_CONNECT config MP_NUM_CPUS default 2 -endif # SOC_NSIM_HS_SMP +if SMP +# When SMP is enabled, use gfrc as wall clock, so sloppy +# idle should be y +config SYSTEM_CLOCK_SLOPPY_IDLE + default y +endif + +endif #SOC_NSIM_HS_SMP