diff options
author | Viresh Kumar <viresh.kumar@linaro.org> | 2013-06-19 11:18:20 +0530 |
---|---|---|
committer | Viresh Kumar <viresh.kumar@linaro.org> | 2013-06-24 18:19:00 +0530 |
commit | 44a49a23c97d9442f4eafe011913897c77bd3075 (patch) | |
tree | 1f46f9499b9a2b3b4189166242a81422e0dfc94f /drivers/cpufreq/s3c64xx-cpufreq.c | |
parent | 5a571c352db1eb0aa6325d71807bb40b972faa3b (diff) | |
download | linux-rt-44a49a23c97d9442f4eafe011913897c77bd3075.tar.gz |
cpufreq: omap: call CPUFREQ_POSTCHANGE notfier in error cases
PRECHANGE and POSTCHANGE notifiers must be called in groups, i.e either both
should be called or both shouldn't be.
In case we have started PRECHANGE notifier and found an error, we must call
POSTCHANGE notifier with freqs.new = freqs.old to guarantee that sequence of
calling notifiers is complete.
Omap driver was taking care of it well, but wasn't restoring freqs.new to
freqs.old in some cases. I wasn't required to add code for it as moving
PRECHANGE notifier down was a better option, so that we call it just before
starting frequency transition.
Acked-by: Santosh Shilimkar <santosh.shilimkar@ti.com>
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Diffstat (limited to 'drivers/cpufreq/s3c64xx-cpufreq.c')
0 files changed, 0 insertions, 0 deletions