PM / AVS: rockchip-cpu-avs: check initial rate early
authorFinley Xiao <finley.xiao@rock-chips.com>
Sun, 8 Jan 2017 02:11:55 +0000 (10:11 +0800)
committerHuang, Tao <huangtao@rock-chips.com>
Mon, 9 Jan 2017 02:52:39 +0000 (10:52 +0800)
commitdb7745d6180822a148c11356d98dd92f0dae33d5
treecfbfda8aa2e9909cfa444c87738b78bb8264c801
parent1665135ead1e27b8c0ba8190327b36f6bb0c04bb
PM / AVS: rockchip-cpu-avs: check initial rate early

As merge the commit 388612baba20 ("cpufreq: Send START policy
notification after sending CREATE"), cpufreq stats table is
created earlier. In order to get correct table index, check
initial rate when receive CREATE and START notification events.

Change-Id: I1ccc6d41704ae8c01156103bbd82888e4e37cd0c
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
drivers/power/avs/rockchip-cpu-avs.c