Implement sysfs interface for vdd
/arch/arm/mach-msm/cpufreq.c
blob:43428501a4b98c74e5f7ee68708cb743e191f567 -> blob:4ea3be86033739e76522470b6e5c7830a5490de6
--- arch/arm/mach-msm/cpufreq.c
+++ arch/arm/mach-msm/cpufreq.c
@@ -221,6 +221,10 @@ static int __cpuinit msm_cpufreq_init(st
init_completion(&cpu_work->complete);
#endif
+#ifdef CONFIG_MSM_CPU_FREQ_SET_MIN_MAX
+ policy->min = CONFIG_MSM_CPU_FREQ_MIN;
+ policy->max = CONFIG_MSM_CPU_FREQ_MAX;
+#endif
return 0;
}
@@ -233,6 +237,8 @@ static int msm_cpufreq_suspend(void)
per_cpu(cpufreq_suspend, cpu).device_suspended = 1;
mutex_unlock(&per_cpu(cpufreq_suspend, cpu).suspend_mutex);
}
+ if (num_online_cpus() > 1)
+ cpu_down(1);
return NOTIFY_DONE;
}