]> Git Repo - linux.git/commit
cpufreq: loongson2: fix regression related to clock management
authorAaro Koskinen <[email protected]>
Mon, 5 Aug 2013 18:27:12 +0000 (21:27 +0300)
committerRafael J. Wysocki <[email protected]>
Wed, 7 Aug 2013 20:25:06 +0000 (22:25 +0200)
commitf54fe64d14dff3df6d45a48115d248a82557811f
treea0115b281230dbb0a1c3d50e95b81c64264e63c9
parentc095ba7224d8edc71dcef0d655911399a8bd4a3f
cpufreq: loongson2: fix regression related to clock management

Commit 42913c799 (MIPS: Loongson2: Use clk API instead of direct
dereferences) broke the cpufreq functionality on Loongson2 boards:
clk_set_rate() is called before the CPU frequency table is
initialized, and therefore will always fail.

Fix by moving the clk_set_rate() after the table initialization.
Tested on Lemote FuLoong mini-PC.

Signed-off-by: Aaro Koskinen <[email protected]>
Acked-by: Viresh Kumar <[email protected]>
Cc: 3.9+ <[email protected]> # 3.9+
Signed-off-by: Rafael J. Wysocki <[email protected]>
drivers/cpufreq/loongson2_cpufreq.c
This page took 0.044166 seconds and 4 git commands to generate.