Skip to contentSkip to conversation

MIPS: BCM63XX: sync mips counters during cpu bringup

PATCH New Jonas Gorski 1 participant 1 message Jul 8, 2014 MIPS

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 MIPS: BCM63XX: sync mips counters during cpu bringup

We are using the mips counters as the clock source, so we need to ensure they are synced, else e.g. gettimeofday will return different values depending on which core it was run.

Observed difference was about 8 seconds, causing ~8 seconds ping or time running backwards for some programs.

---
 arch/mips/Kconfig | 1 +
 1 file changed, 1 insertion(+)
arch/mips/Kconfig +1 -0
index 4e238e6..3f05b56 100644
@@ -138,6 +138,7 @@ config BCM63XX
 	select BOOT_RAW
 	select CEVT_R4K
 	select CSRC_R4K
+	select SYNC_R4K
 	select DMA_NONCOHERENT
 	select IRQ_CPU
 	select SYS_SUPPORTS_32BIT_KERNEL
Signature · 1 line
2.0.0