From: Ziggy Date: Sat, 23 Feb 2013 19:03:44 +0000 (-0500) Subject: Only re-apply vmin if it's needed by the processor X-Git-Url: https://www.ziggy471.com/git/gitweb.cgi?p=ziggy471-sgs3-jb.git;a=commitdiff;h=361cab735b510fafea21f70cf58570aaa75e1f4b Only re-apply vmin if it's needed by the processor --- --- a/arch/arm/mach-msm/acpuclock-8960.c +++ b/arch/arm/mach-msm/acpuclock-8960.c @@ -1479,11 +1479,13 @@ void acpuclk_set_vmin(int newvmin) { int i; - if (newvmin >= MIN_VDD_SC && newvmin <= MAX_VDD_SC) { - VMIN = newvmin; - for (i = 0; acpu_freq_tbl[i].speed.khz; i++) - acpu_freq_tbl[i].vdd_core = acpu_freq_tbl[i].vdd_core_save; - kraitv2_apply_vmin(acpu_freq_tbl); + if (krait_needs_vmin()) { + if (newvmin >= MIN_VDD_SC && newvmin <= MAX_VDD_SC) { + VMIN = newvmin; + for (i = 0; acpu_freq_tbl[i].speed.khz; i++) + acpu_freq_tbl[i].vdd_core = acpu_freq_tbl[i].vdd_core_save; + kraitv2_apply_vmin(acpu_freq_tbl); + } } } #endif