brcm63xx: Add DT support for A4001N
[openwrt/svn-archive/archive.git] / target / linux / brcm63xx / patches-3.14 / 101-MIPS-BCM63XX-sync-mips-counter-during-cpu-bringup.patch
1 From 23c21090f49a64b532755542a71e9aa3e4fc84d9 Mon Sep 17 00:00:00 2001
2 From: Jonas Gorski <jogo@openwrt.org>
3 Date: Sat, 5 Apr 2014 20:07:25 +0200
4 Subject: [PATCH] MIPS: BCM63XX: sync mips counter during cpu bringup
5
6 We are using the mips counters as the clock source, so we need to ensure
7 they are synced, else e.g. gettimeofday will return different values
8 depending on which core it was run.
9
10 Observed difference was about 8 seconds, causing ~8 seconds ping or time
11 running backwards for some programs.
12
13 Signed-off-by: Jonas Gorski <jogo@openwrt.org>
14 ---
15 arch/mips/Kconfig | 1 +
16 1 file changed, 1 insertion(+)
17
18 --- a/arch/mips/Kconfig
19 +++ b/arch/mips/Kconfig
20 @@ -132,6 +132,7 @@ config BCM63XX
21 select BOOT_RAW
22 select CEVT_R4K
23 select CSRC_R4K
24 + select SYNC_R4K
25 select DMA_NONCOHERENT
26 select IRQ_CPU
27 select SYS_SUPPORTS_32BIT_KERNEL