summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorViresh Kumar <viresh.kumar@linaro.org>2013-07-02 16:36:28 +0530
committerChanho Park <chanho61.park@samsung.com>2014-08-08 15:19:32 +0900
commit39086494868ae1d5ec97b87491167b81bdf50a7c (patch)
tree9672faf75e0bd041074e680a60edd10c9558fc84 /include/linux
parent9cfccbc1368fcda0b35f49ac34ac72210d1e99a4 (diff)
downloadlinux-3.10-39086494868ae1d5ec97b87491167b81bdf50a7c.tar.gz
linux-3.10-39086494868ae1d5ec97b87491167b81bdf50a7c.tar.bz2
linux-3.10-39086494868ae1d5ec97b87491167b81bdf50a7c.zip
cpufreq: Fix serialization of frequency transitions
Commit 7c30ed ("cpufreq: make sure frequency transitions are serialized") interacts poorly with systems that have a single core freqency for all cores. On such systems we have a single policy for all cores with several CPUs. When we do a frequency transition the governor calls the pre and post change notifiers which causes cpufreq_notify_transition() per CPU. Since the policy is the same for all of them all CPUs after the first and the warnings added are generated by checking a per-policy flag the warnings will be triggered for all cores after the first. Fix this by allowing notifier to be called for n times. Where n is the number of cpus in policy->cpus. Change-Id: I5712dde7f992644f9c3ddc8313151f80bea0d877 Reported-and-tested-by: Mark Brown <broonie@linaro.org> Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/cpufreq.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/cpufreq.h b/include/linux/cpufreq.h
index e3da73bbcf0..bd1ad374076 100644
--- a/include/linux/cpufreq.h
+++ b/include/linux/cpufreq.h
@@ -121,7 +121,7 @@ struct cpufreq_policy {
struct list_head policy_list;
struct kobject kobj;
struct completion kobj_unregister;
- bool transition_ongoing; /* Tracks transition status */
+ int transition_ongoing; /* Tracks transition status */
};
#define CPUFREQ_ADJUST (0)