msm: mpdecision: update dcvs algo params at initialization

By skipping the update of dcvs algo params when mpdecision first
starts, there's a small window where dcvs may run with the incorrect
parameters, depending on how many CPUs are online.

Change-Id: I44094a9abb5e801b0869fb8b796a62eb4d0c49be
Signed-off-by: Steve Muckle <smuckle@codeaurora.org>
This commit is contained in:
Steve Muckle
2012-12-04 14:05:09 -08:00
parent 9d7b06a116
commit ea58445eba
+1 -1
View File
@@ -360,6 +360,7 @@ static int __cpuinit msm_mpd_do_hotplug(void *data)
int cpu;
while (1) {
msm_dcvs_update_algo_params();
wait_event(msm_mpd.wait_hpq, *event || kthread_should_stop());
if (kthread_should_stop())
break;
@@ -392,7 +393,6 @@ restart:
}
msm_mpd.hpupdate = HPUPDATE_WAITING;
msm_dcvs_apply_gpu_floor(0);
msm_dcvs_update_algo_params();
}
return 0;