]> xenbits.xensource.com Git - people/aperard/linux-chromebook.git/commitdiff
CHERRY-PICK: exynos5: asv: Call the core ASV code early
authorAbhilash Kesavan <a.kesavan@samsung.com>
Fri, 21 Dec 2012 04:14:39 +0000 (09:44 +0530)
committerDoug Anderson <dianders@chromium.org>
Wed, 9 Jan 2013 23:48:55 +0000 (15:48 -0800)
Change the priority of ASV code initialization. The core ASV code
finds the speed group, lot id and exposes it to various consumer
drivers like busfreq, G3D and CPUfreq. Among these, the G3D driver
is getting called before the core code and thus is always getting
the ASV speed group as 0. Fix this by calling the core ASV early.

BUG=chrome-os-partner:16796
TEST=Checked that G3D, ARM and INT drivers are all getting the same
ASV group on 2 different boards (1 MP and 1 PVT). Also, verified that
the voltages match that speed group.

Change-Id: Ib2ba155cdd968f7ca74d122d6716fb0a9a228c99
Original-Change-Id:  I1ca234a770bbd8b2d590a83377ee44527327066b
Signed-off-by: Abhilash Kesavan <a.kesavan@samsung.com>
Reviewed-by: Doug Anderson <dianders@chromium.org>
Commit-Queue: Doug Anderson <dianders@chromium.org>
Tested-by: Doug Anderson <dianders@chromium.org>
(cherry picked from commit 0947da07a809fe38b056ca0618a071cbb198a0e9)

Reviewed-on: https://gerrit.chromium.org/gerrit/40952
Reviewed-by: Olof Johansson <olofj@chromium.org>
arch/arm/mach-exynos/asv-5250.c

index b953de8fcbb732c12fe3826c4974e4e0fa74596b..508690d5cd9f10d1cc5009d455fef17260f20fc1 100644 (file)
@@ -469,4 +469,4 @@ exit:
        clk_disable(chipid_clk);
        return 0;
 }
-device_initcall_sync(exynos5250_asv_init);
+subsys_initcall_sync(exynos5250_asv_init);