]> git.baikalelectronics.ru Git - kernel.git/commit
MIPS: BCM63xx: Sync MIPS counters during CPU bringup
authorJonas Gorski <jogo@openwrt.org>
Tue, 8 Jul 2014 14:26:13 +0000 (16:26 +0200)
committerRalf Baechle <ralf@linux-mips.org>
Wed, 30 Jul 2014 13:20:04 +0000 (15:20 +0200)
commit540c0e60140eb08c36bc5bce6f2fcdcf45b525de
treea12347dafb2d364ca50517b771829baa0e01efaa
parentd466176bb198dbb3c0a4cf12ac900b0bb502673b
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>
arch/mips/Kconfig