summaryrefslogtreecommitdiff
path: root/arch/mips
diff options
context:
space:
mode:
authorJiaxun Yang <jiaxun.yang@flygoat.com>2024-06-12 09:54:30 +0100
committerThomas Bogendoerfer <tsbogend@alpha.franken.de>2024-07-03 16:48:06 +0200
commit426fa8e4fe7bb914b5977cbce453a9926bf5b2e6 (patch)
tree12528203732b785602f385f04e12ecb909c5b230 /arch/mips
parent7190401fc56fb5f02ee3d04476778ab000bbaf32 (diff)
MIPS: csrc-r4k: Select HAVE_UNSTABLE_SCHED_CLOCK if SMP && 64BIT
csrc-r4k suffers from SMP synchronization overhead. Select HAVE_UNSTABLE_SCHED_CLOCK to workaround drift between the CPUs on the system. HAVE_UNSTABLE_SCHED_CLOCK requires cmpxchg64, so enable it for 64 bits only. Signed-off-by: Jiaxun Yang <jiaxun.yang@flygoat.com> Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
Diffstat (limited to 'arch/mips')
-rw-r--r--arch/mips/Kconfig1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/mips/Kconfig b/arch/mips/Kconfig
index 1236ea122061..c14192514e9d 100644
--- a/arch/mips/Kconfig
+++ b/arch/mips/Kconfig
@@ -1084,6 +1084,7 @@ config CSRC_IOASIC
config CSRC_R4K
select CLOCKSOURCE_WATCHDOG if CPU_FREQ
+ select HAVE_UNSTABLE_SCHED_CLOCK if SMP && 64BIT
bool
config CSRC_SB1250