diff options
-rw-r--r-- | Documentation/cpu-freq/cpu-drivers.txt | 6 | ||||
-rw-r--r-- | Documentation/cpu-freq/user-guide.txt | 8 | ||||
-rw-r--r-- | include/linux/cpufreq.h | 6 |
3 files changed, 14 insertions, 6 deletions
diff --git a/Documentation/cpu-freq/cpu-drivers.txt b/Documentation/cpu-freq/cpu-drivers.txt index c436096351f8..72f70b16d299 100644 --- a/Documentation/cpu-freq/cpu-drivers.txt +++ b/Documentation/cpu-freq/cpu-drivers.txt | |||
@@ -111,6 +111,12 @@ policy->governor must contain the "default policy" for | |||
111 | For setting some of these values, the frequency table helpers might be | 111 | For setting some of these values, the frequency table helpers might be |
112 | helpful. See the section 2 for more information on them. | 112 | helpful. See the section 2 for more information on them. |
113 | 113 | ||
114 | SMP systems normally have same clock source for a group of cpus. For these the | ||
115 | .init() would be called only once for the first online cpu. Here the .init() | ||
116 | routine must initialize policy->cpus with mask of all possible cpus (Online + | ||
117 | Offline) that share the clock. Then the core would copy this mask onto | ||
118 | policy->related_cpus and will reset policy->cpus to carry only online cpus. | ||
119 | |||
114 | 120 | ||
115 | 1.3 verify | 121 | 1.3 verify |
116 | ------------ | 122 | ------------ |
diff --git a/Documentation/cpu-freq/user-guide.txt b/Documentation/cpu-freq/user-guide.txt index 04f6b32993e6..ff2f28332cc4 100644 --- a/Documentation/cpu-freq/user-guide.txt +++ b/Documentation/cpu-freq/user-guide.txt | |||
@@ -190,11 +190,11 @@ scaling_max_freq show the current "policy limits" (in | |||
190 | first set scaling_max_freq, then | 190 | first set scaling_max_freq, then |
191 | scaling_min_freq. | 191 | scaling_min_freq. |
192 | 192 | ||
193 | affected_cpus : List of CPUs that require software coordination | 193 | affected_cpus : List of Online CPUs that require software |
194 | of frequency. | 194 | coordination of frequency. |
195 | 195 | ||
196 | related_cpus : List of CPUs that need some sort of frequency | 196 | related_cpus : List of Online + Offline CPUs that need software |
197 | coordination, whether software or hardware. | 197 | coordination of frequency. |
198 | 198 | ||
199 | scaling_driver : Hardware driver for cpufreq. | 199 | scaling_driver : Hardware driver for cpufreq. |
200 | 200 | ||
diff --git a/include/linux/cpufreq.h b/include/linux/cpufreq.h index 5fdc6c6e3f8a..753b198750cf 100644 --- a/include/linux/cpufreq.h +++ b/include/linux/cpufreq.h | |||
@@ -89,8 +89,10 @@ struct cpufreq_real_policy { | |||
89 | }; | 89 | }; |
90 | 90 | ||
91 | struct cpufreq_policy { | 91 | struct cpufreq_policy { |
92 | cpumask_var_t cpus; /* CPUs requiring sw coordination */ | 92 | /* CPUs sharing clock, require sw coordination */ |
93 | cpumask_var_t related_cpus; /* CPUs with any coordination */ | 93 | cpumask_var_t cpus; /* Online CPUs only */ |
94 | cpumask_var_t related_cpus; /* Online + Offline CPUs */ | ||
95 | |||
94 | unsigned int shared_type; /* ANY or ALL affected CPUs | 96 | unsigned int shared_type; /* ANY or ALL affected CPUs |
95 | should set cpufreq */ | 97 | should set cpufreq */ |
96 | unsigned int cpu; /* cpu nr of CPU managing this policy */ | 98 | unsigned int cpu; /* cpu nr of CPU managing this policy */ |