cpufreq: e_powersaver: call CPUFREQ_POSTCHANGE notfier in error cases
authorViresh Kumar <viresh.kumar@linaro.org>
Wed, 19 Jun 2013 08:52:59 +0000 (14:22 +0530)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 24 Jun 2013 11:19:27 +0000 (13:19 +0200)
commit567f4f6727bccf729fb2c55c9da29c787bb1b583
tree98429b591257f491380d7c4b57088af5b9b47342
parente15d8309e961ea960dbe40f94fd7ac64f8efe3f6
cpufreq: e_powersaver: call CPUFREQ_POSTCHANGE notfier in error cases

In case we have started PRECHANGE notifier and found an error, we
must call POSTCHANGE notifier with freqs.new = freqs.old.

This driver does take care of it, but the POSTCHANGE is called with
freqs.new on errors too, which is incorrect, so fix it.

[rjw: Changelog]
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/cpufreq/e_powersaver.c