summaryrefslogtreecommitdiffstats
path: root/drivers/cpufreq/intel_pstate.c
diff options
context:
space:
mode:
authorSudeep Holla <Sudeep.Holla@arm.com>2017-08-10 16:58:57 +0200
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2017-08-18 01:41:37 +0200
commitb20a3f3d8a3516dcde2d1fb130169f336bc93023 (patch)
tree2326d437126871375a620c5ff23a3f43da1f59d5 /drivers/cpufreq/intel_pstate.c
parentcpufreq: mediatek: add support of cpufreq to MT7622 SoC (diff)
downloadlinux-b20a3f3d8a3516dcde2d1fb130169f336bc93023.tar.xz
linux-b20a3f3d8a3516dcde2d1fb130169f336bc93023.zip
cpufreq: remove setting of policy->cpu in policy->cpus during init
policy->cpu is copied into policy->cpus in cpufreq_online() before calling into cpufreq_driver->init(). So there's no need to set the same in the individual driver init() functions again. This patch removes the redundant setting of policy->cpu in policy->cpus in intel_pstate and cppc drivers. Reported-by: Viresh Kumar <viresh.kumar@linaro.org> Signed-off-by: Sudeep Holla <sudeep.holla@arm.com> Acked-by: Viresh Kumar <viresh.kumar@linaro.org> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/cpufreq/intel_pstate.c')
-rw-r--r--drivers/cpufreq/intel_pstate.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/cpufreq/intel_pstate.c b/drivers/cpufreq/intel_pstate.c
index c1100a3e3325..5c20d2c56bd7 100644
--- a/drivers/cpufreq/intel_pstate.c
+++ b/drivers/cpufreq/intel_pstate.c
@@ -2124,7 +2124,6 @@ static int __intel_pstate_cpu_init(struct cpufreq_policy *policy)
policy->cpuinfo.max_freq *= cpu->pstate.scaling;
intel_pstate_init_acpi_perf_limits(policy);
- cpumask_set_cpu(policy->cpu, policy->cpus);
policy->fast_switch_possible = true;