diff options
author | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2017-03-28 00:22:16 +0200 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2017-03-28 23:12:16 +0200 |
commit | 2bfc4cbb5fd3848669f1b95fea793f63d8e77fa0 (patch) | |
tree | 2bd87001b339a4062d78060edb5ad71330165eff /.gitattributes | |
parent | cpufreq: intel_pstate: Introduce pid_in_use() (diff) | |
download | linux-2bfc4cbb5fd3848669f1b95fea793f63d8e77fa0.tar.xz linux-2bfc4cbb5fd3848669f1b95fea793f63d8e77fa0.zip |
cpufreq: intel_pstate: Do not walk policy->cpus
intel_pstate_hwp_set() is the only function walking policy->cpus
in intel_pstate. The rest of the code simply assumes one CPU per
policy, including the initialization code.
Therefore it doesn't make sense for intel_pstate_hwp_set() to
walk policy->cpus as it is guaranteed to have only one bit set
for policy->cpu.
For this reason, rearrange intel_pstate_hwp_set() to take the CPU
number as the argument and drop the loop over policy->cpus from it.
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to '.gitattributes')
0 files changed, 0 insertions, 0 deletions