mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -04:00
[CPUFREQ] Reduce scope of cpu_sys_dev in cpufreq_add_dev
Signed-off-by: Dave Jones <[email protected]>
This commit is contained in:
parent
da470db16c
commit
54e6fe167b
1 changed files with 1 additions and 1 deletions
|
|
@ -773,7 +773,6 @@ static int cpufreq_add_dev(struct sys_device *sys_dev)
|
|||
struct cpufreq_policy new_policy;
|
||||
struct cpufreq_policy *policy;
|
||||
struct freq_attr **drv_attr;
|
||||
struct sys_device *cpu_sys_dev;
|
||||
unsigned long flags;
|
||||
unsigned int j;
|
||||
|
||||
|
|
@ -936,6 +935,7 @@ static int cpufreq_add_dev(struct sys_device *sys_dev)
|
|||
/* symlink affected CPUs */
|
||||
for_each_cpu(j, policy->cpus) {
|
||||
struct cpufreq_policy *managed_policy;
|
||||
struct sys_device *cpu_sys_dev;
|
||||
|
||||
if (j == cpu)
|
||||
continue;
|
||||
|
|
|
|||
Loading…
Reference in a new issue