From ea58445ebaaeb3313975e678889f9e4eea52ad4f Mon Sep 17 00:00:00 2001 From: Steve Muckle Date: Tue, 4 Dec 2012 14:05:09 -0800 Subject: [PATCH] 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 --- arch/arm/mach-msm/msm_mpdecision.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/mach-msm/msm_mpdecision.c b/arch/arm/mach-msm/msm_mpdecision.c index 94b546a2330..910804b15a1 100644 --- a/arch/arm/mach-msm/msm_mpdecision.c +++ b/arch/arm/mach-msm/msm_mpdecision.c @@ -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;