]> git.baikalelectronics.ru Git - kernel.git/commit
MIPS/loongson2_cpufreq: Fix CPU clock rate setting
authorAaro Koskinen <aaro.koskinen@iki.fi>
Thu, 3 Apr 2014 19:24:01 +0000 (22:24 +0300)
committerRalf Baechle <ralf@linux-mips.org>
Mon, 12 May 2014 22:29:41 +0000 (00:29 +0200)
commit54e476863ee4b6216915964218974b6752f4f92b
tree73c8180a1885397ec3c9232b82c1ac0dd3bf1ce9
parent7b526f07332b3f19923c16545e81091a79c2efd0
MIPS/loongson2_cpufreq: Fix CPU clock rate setting

Loongson2 has been using (incorrectly) kHz for cpu_clk rate. This has
been unnoticed, as loongson2_cpufreq was the only place where the rate
was set/get. After commit 16240da36c95f19744b6f489de77b052be225812
(cpufreq: introduce cpufreq_generic_get() routine) things however broke,
and now loops_per_jiffy adjustments are incorrect (1000 times too long).
The patch fixes this by changing cpu_clk rate to Hz.

Signed-off-by: Aaro Koskinen <aaro.koskinen@iki.fi>
Cc: stable@vger.kernel.org
Cc: Rafael J. Wysocki <rjw@rjwysocki.net>
Cc: Viresh Kumar <viresh.kumar@linaro.org>
Cc: linux-mips@linux-mips.org
Cc: linux-kernel@vger.kernel.org
Cc: cpufreq@vger.kernel.org
Cc: Aaro Koskinen <aaro.koskinen@iki.fi>
Patchwork: https://patchwork.linux-mips.org/patch/6678/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/loongson/lemote-2f/clock.c
drivers/cpufreq/loongson2_cpufreq.c