--- 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