From: Chad Goodman Date: Wed, 19 Dec 2012 07:52:03 +0000 (-0800) Subject: CPU: stop checking for min_vdd and save cpu cycles X-Git-Url: https://www.ziggy471.com/git/gitweb.cgi?p=ziggy471-sgs3-jb.git;a=commitdiff;h=6085508fb49989fc4593bd7286f7e748c1ff553b CPU: stop checking for min_vdd and save cpu cycles Signed-off-by: Ziggy --- --- a/arch/arm/mach-msm/acpuclock-8960.c +++ b/arch/arm/mach-msm/acpuclock-8960.c @@ -1398,6 +1398,7 @@ static struct notifier_block __cpuinitda .notifier_call = acpuclock_cpu_callback, }; +#if 0 static const int krait_needs_vmin(void) { switch (read_cpuid_id()) { @@ -1416,6 +1417,7 @@ static void kraitv2_apply_vmin(struct ac if (tbl->vdd_core < MIN_VDD_SC) tbl->vdd_core = MIN_VDD_SC; } +#endif #ifdef CONFIG_SEC_L1_DCACHE_PANIC_CHK uint32_t global_sec_pvs_value; @@ -1514,8 +1516,10 @@ static struct acpu_level * __init select } else { BUG(); } +#if 0 if (krait_needs_vmin()) kraitv2_apply_vmin(acpu_freq_tbl); +#endif /* Find the max supported scaling frequency. */ for (l = acpu_freq_tbl; l->speed.khz != 0; l++)