Skip to content

Commit fc26402

Browse files
KanjiMonsterralfbaechle
authored andcommitted
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. Signed-off-by: Jonas Gorski <jogo@openwrt.org> Cc: linux-mips@linux-mips.org Cc: John Crispin <blogic@openwrt.org> Cc: Maxime Bizon <mbizon@freebox.fr> Cc: Florian Fainelli <florian@openwrt.org> Cc: Kevin Cernekee <cernekee@gmail.com> Patchwork: https://patchwork.linux-mips.org/patch/7265/ Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
1 parent 0079188 commit fc26402

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎arch/mips/Kconfig‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,7 @@ config BCM63XX
139139
select BOOT_RAW
140140
select CEVT_R4K
141141
select CSRC_R4K
142+
select SYNC_R4K
142143
select DMA_NONCOHERENT
143144
select IRQ_CPU
144145
select SYS_SUPPORTS_32BIT_KERNEL

0 commit comments

Comments
 (0)