linux/arch/mips/loongson
Aaro Koskinen 4236d29b5f MIPS/loongson2_cpufreq: Fix CPU clock rate setting
commit 8e8acb3296 upstream.

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 652ed95d5f
(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: 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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
History 2014-06-07 10:28:07 -07:00
..
common MIPS: Loongson: Hide the pci code behind CONFIG_PCI 2013-09-03 15:27:39 +02:00
fuloong-2e MIPS: Whitespace cleanup. 2013-02-01 10:00:22 +01:00
lemote-2f MIPS/loongson2_cpufreq: Fix CPU clock rate setting 2014-06-07 10:28:07 -07:00
Kconfig MIPS: Loongson 2: Sort out clock managment. 2012-08-01 18:10:06 +02:00
Makefile MIPS: Whitespace cleanup. 2013-02-01 10:00:22 +01:00
Platform MIPS: Loongson: Migrate makefile to new Platform file 2010-08-05 13:25:45 +01:00