diff options
| author | Sudeep Holla <[email protected]> | 2017-08-10 14:58:57 +0000 |
|---|---|---|
| committer | Rafael J. Wysocki <[email protected]> | 2017-08-17 23:41:37 +0000 |
| commit | b20a3f3d8a3516dcde2d1fb130169f336bc93023 (patch) | |
| tree | 2326d437126871375a620c5ff23a3f43da1f59d5 /drivers/cpufreq/cppc_cpufreq.c | |
| parent | cpufreq: mediatek: add support of cpufreq to MT7622 SoC (diff) | |
| download | kernel-b20a3f3d8a3516dcde2d1fb130169f336bc93023.tar.gz kernel-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 <[email protected]>
Signed-off-by: Sudeep Holla <[email protected]>
Acked-by: Viresh Kumar <[email protected]>
Signed-off-by: Rafael J. Wysocki <[email protected]>
Diffstat (limited to 'drivers/cpufreq/cppc_cpufreq.c')
| -rw-r--r-- | drivers/cpufreq/cppc_cpufreq.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/cpufreq/cppc_cpufreq.c b/drivers/cpufreq/cppc_cpufreq.c index 10be285c9055..a1c3025f9df7 100644 --- a/drivers/cpufreq/cppc_cpufreq.c +++ b/drivers/cpufreq/cppc_cpufreq.c @@ -172,7 +172,6 @@ static int cppc_cpufreq_cpu_init(struct cpufreq_policy *policy) return -EFAULT; } - cpumask_set_cpu(policy->cpu, policy->cpus); cpu->cur_policy = policy; /* Set policy->cur to max now. The governors will adjust later. */ |
