]> git.baikalelectronics.ru Git - kernel.git/commit
MIPS: Netlogic: use preset loops per jiffy
authorJayachandran C <jchandra@broadcom.com>
Mon, 14 Jan 2013 15:12:00 +0000 (15:12 +0000)
committerJohn Crispin <blogic@openwrt.org>
Sat, 16 Feb 2013 23:15:21 +0000 (00:15 +0100)
commit6c6f92d53e49fc52c8fba54b31f0eb138c345e22
tree2079e8eeecc7947dd804fbe520326dfa72d4ce99
parent5a7ca3f86c5568661b0568800b3eedf982b200f8
MIPS: Netlogic: use preset loops per jiffy

Doing calibrate delay on a hardware thread will be inaccurate since
it depends on the load on other threads in the core. It will also
slow down the boot process when done for 128 hardware threads. Switch
to a pre-computed loops per jiffy based on the core frequency. The
value is computed based on the core frequency and roughly matches the
value calculated by calibrate_delay().

Signed-off-by: Jayachandran C <jchandra@broadcom.com>
Patchwork: http://patchwork.linux-mips.org/patch/4791/
Signed-off-by: John Crispin <blogic@openwrt.org>
arch/mips/netlogic/common/time.c