]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
cpufreq: remove setting of policy->cpu in policy->cpus during init
authorSudeep Holla <Sudeep.Holla@arm.com>
Thu, 10 Aug 2017 14:58:57 +0000 (15:58 +0100)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 17 Aug 2017 23:41:37 +0000 (01:41 +0200)
commitb20a3f3d8a3516dcde2d1fb130169f336bc93023
tree2326d437126871375a620c5ff23a3f43da1f59d5
parentccc03d86e2c81667664f805f4e1b84c80aa7b3bf
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>
drivers/cpufreq/cppc_cpufreq.c
drivers/cpufreq/intel_pstate.c