]> git.baikalelectronics.ru Git - kernel.git/commit
MIPS: AR7: Fix loops per jiffies on TNETD7200 devices
authorFlorian Fainelli <florian@openwrt.org>
Sun, 31 Oct 2010 22:49:58 +0000 (23:49 +0100)
committerRalf Baechle <ralf@linux-mips.org>
Thu, 16 Dec 2010 18:10:56 +0000 (18:10 +0000)
commitd69dfce820e982fb9278562bc047611f85547dcc
treeb3c0f870535093c701816abcde5cd617b1cbf46e
parent14cfff4f973d0e67bdb8f453f0e9d6cdb90e9a9e
MIPS: AR7: Fix loops per jiffies on TNETD7200 devices

TNETD7200 run their CPU clock faster than the default CPU clock we assume.
In order to have the correct loops per jiffies settings, initialize clocks right
before setting mips_hpt_frequency. As a side effect, we can no longer use
msleep in clocks.c which requires other parts of the kernel to be initialized,
so replace these with mdelay.

Signed-off-by: Florian Fainelli <florian@openwrt.org>
To: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/1749/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/ar7/clock.c
arch/mips/ar7/time.c
arch/mips/include/asm/mach-ar7/ar7.h