cpufreq: OMAP: Disable cpufreq during suspend
authorVaibhav Bedia <vaibhav.bedia@ti.com>
Mon, 12 Mar 2012 18:05:47 +0000 (23:35 +0530)
committerVaibhav Bedia <vaibhav.bedia@ti.com>
Mon, 12 Mar 2012 18:05:47 +0000 (23:35 +0530)
commit3491cfa6f7f4ae06efaa8e3bc3b5d9063bf4b56c
treed1691f62d4c97bac5618dbd062cc38887184ec88
parent95210de8c1b28314e4e948fc1d26a44ad9dbaf87
cpufreq: OMAP: Disable cpufreq during suspend

On AM335x, we need to reconfigure the PLLs and voltage
during suspend. With regulator calls in the suspend code
errors were reported by the cpufreq driver in the resume
path. This is probably because cpufreq is suspended
very late in the overall suspend process.

For now, we make use of SUSPEND_PREPARE notification
to block any further OPP changes from the driver.

Signed-off-by: Vaibhav Bedia <vaibhav.bedia@ti.com>
arch/arm/mach-omap2/pm33xx.c
drivers/cpufreq/omap-cpufreq.c