Commits
Bai Ping committed 62300a00462
MLK-9693 cpufreq: imx: increase cpufreq during suspend/resume During suspend/ressume, when cpufreq driver try to increase Voltage/freq, it needs to control I2C/SPI to communicate with external PMIC to adjust voltage, but these I2C/SPI devices may be already suspended, to avoid such scenario, we adjust increase cpufreq to highest setpoint before suspend. As this pm notification's updating cpu policy may work together with cpufreq governor, both of them may call set_target at same time, so we need to add mutex lock to prevent this scenario, otherwise, the clock use count will be wrong. Signed-off-by: Anson Huang <b20788@freescale.com> Signed-off-by: Robin Gong <b38343@freescale.com> Signed-off-by: Bai Ping <b51503@freescale.com> (cherry picked from commit 9f5158fd0fd6e11e2f69cf975d3843cf6cc84048)