diff options
author | Viresh Kumar <viresh.kumar@linaro.org> | 2013-06-19 10:16:55 +0530 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2013-06-27 21:49:55 +0200 |
commit | 7c30ed532cf798a8d924562f2f44d03d7652f7a7 (patch) | |
tree | 6198099d8f7fc69c3510908d539df878857684cd /mm | |
parent | Merge branch 'pm-cpufreq-arm' into pm-cpufreq (diff) | |
download | linux-7c30ed5.tar.gz linux-7c30ed5.tar.bz2 linux-7c30ed5.zip |
cpufreq: make sure frequency transitions are serialized
Whenever we are changing frequency of a cpu, we are calling PRECHANGE and
POSTCHANGE notifiers. They must be serialized. i.e. PRECHANGE or POSTCHANGE
shouldn't be called twice contiguously.
This can happen due to bugs in users of __cpufreq_driver_target() or actual
cpufreq drivers who are sending these notifiers.
This patch adds some protection against this. Now, we keep track of the last
transaction and see if something went wrong.
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'mm')
0 files changed, 0 insertions, 0 deletions