WSL2-Linux-Kernel/arch/mips/loongson
Aaro Koskinen 8e8acb3296 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 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: 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>
2014-05-13 00:29:41 +02:00
..
common MIPS: Loongson 3: Add Loongson-3 SMP support 2014-03-31 18:17:12 +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-05-13 00:29:41 +02:00
loongson-3 MIPS: Loongson 3: Add CPU hotplug support 2014-03-31 18:17:12 +02:00
Kconfig MIPS: Loongson: No need to select GENERIC_HARDIRQS_NO__DO_IRQ 2014-05-13 00:29:40 +02:00
Makefile MIPS: Loongson 3: Add IRQ init and dispatch support 2014-03-31 18:17:12 +02:00
Platform MIPS: Loongson: Add Loongson-3 Kconfig options 2014-03-31 18:17:12 +02:00