ivan:
I don't know if you've figured it out already, but to answer your question about restricting to 528 while booting:
In arch/arm/mach-msm/cpufreq.c, you'll see this in the msm_cpufreq_init function:
#if 0
/* restrict cpu freq scaling range by overwriting */
policy->min = CONFIG_MSM_CPU_FREQ_ONDEMAND_MIN;
policy->max = CONFIG_MSM_CPU_FREQ_ONDEMAND_MAX;
#endif
Change that "#if 0" to "#if 1" (or change it to an #ifdef for the CONFIG_MSM_CPU_FREQ_ONDEMAND_MIN and CONFIG_MSM_CPU_FREQ_ONDEMAND_MAX config variables, like I did), and that will overwrite the *default* policy upon init. So, it will let you override it with setcpu, but will restrict scaling to 528000 (or whatever you change the config variables to) until setcpu kicks in.
Also, did you remove the perflock code entirely, or just remove the notifier registration? I've rewritten the overclocking code to be safer, and I'd love to copmare patches and share work.
Cheers!
-robin
I don't know if you've figured it out already, but to answer your question about restricting to 528 while booting:
In arch/arm/mach-msm/cpufreq.c, you'll see this in the msm_cpufreq_init function:
#if 0
/* restrict cpu freq scaling range by overwriting */
policy->min = CONFIG_MSM_CPU_FREQ_ONDEMAND_MIN;
policy->max = CONFIG_MSM_CPU_FREQ_ONDEMAND_MAX;
#endif
Change that "#if 0" to "#if 1" (or change it to an #ifdef for the CONFIG_MSM_CPU_FREQ_ONDEMAND_MIN and CONFIG_MSM_CPU_FREQ_ONDEMAND_MAX config variables, like I did), and that will overwrite the *default* policy upon init. So, it will let you override it with setcpu, but will restrict scaling to 528000 (or whatever you change the config variables to) until setcpu kicks in.
Also, did you remove the perflock code entirely, or just remove the notifier registration? I've rewritten the overclocking code to be safer, and I'd love to copmare patches and share work.
Cheers!
-robin