mirror of
https://github.com/LineageOS/android_kernel_samsung_msm8226.git
synced 2026-09-28 00:00:22 +02:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user