projects
/
platform
/
upstream
/
kernel-adaptation-pc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
da470db
)
[CPUFREQ] Reduce scope of cpu_sys_dev in cpufreq_add_dev
author
Dave Jones
<davej@redhat.com>
Wed, 8 Jul 2009 20:28:05 +0000
(16:28 -0400)
committer
Dave Jones
<davej@redhat.com>
Tue, 1 Sep 2009 16:45:09 +0000
(12:45 -0400)
Signed-off-by: Dave Jones <davej@redhat.com>
drivers/cpufreq/cpufreq.c
patch
|
blob
|
history
diff --git
a/drivers/cpufreq/cpufreq.c
b/drivers/cpufreq/cpufreq.c
index
2968ed6
..
ce31e6e
100644
(file)
--- a/
drivers/cpufreq/cpufreq.c
+++ b/
drivers/cpufreq/cpufreq.c
@@
-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;