Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
nexedi
linux
Commits
54e6fe16
Commit
54e6fe16
authored
15 years ago
by
Dave Jones
Browse files
Options
Download
Email Patches
Plain Diff
[CPUFREQ] Reduce scope of cpu_sys_dev in cpufreq_add_dev
Signed-off-by:
Dave Jones
<
davej@redhat.com
>
parent
da470db1
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
drivers/cpufreq/cpufreq.c
drivers/cpufreq/cpufreq.c
+1
-1
No files found.
drivers/cpufreq/cpufreq.c
View file @
54e6fe16
...
...
@@ -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
;
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment