Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 59202
b: refs/heads/master
c: 0a4b2cc
h: refs/heads/master
v: v3
  • Loading branch information
Thomas Renninger authored and Dave Jones committed May 29, 2007
1 parent 8fc719e commit 7ed3504
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 489dc5cb18932d3cedaef03e84890475db17a843
refs/heads/master: 0a4b2ccc555fa2ca6873d60219047104e4805d45
15 changes: 10 additions & 5 deletions trunk/drivers/cpufreq/cpufreq.c
Original file line number Diff line number Diff line change
Expand Up @@ -826,13 +826,18 @@ static int cpufreq_add_dev (struct sys_device * sys_dev)
/* set up files for this cpu device */
drv_attr = cpufreq_driver->attr;
while ((drv_attr) && (*drv_attr)) {
sysfs_create_file(&policy->kobj, &((*drv_attr)->attr));
if (sysfs_create_file(&policy->kobj, &((*drv_attr)->attr)))
goto err_out_driver_exit;
drv_attr++;
}
if (cpufreq_driver->get)
sysfs_create_file(&policy->kobj, &cpuinfo_cur_freq.attr);
if (cpufreq_driver->target)
sysfs_create_file(&policy->kobj, &scaling_cur_freq.attr);
if (cpufreq_driver->get){
if (sysfs_create_file(&policy->kobj, &cpuinfo_cur_freq.attr))
goto err_out_driver_exit;
}
if (cpufreq_driver->target){
if (sysfs_create_file(&policy->kobj, &scaling_cur_freq.attr))
goto err_out_driver_exit;
}

spin_lock_irqsave(&cpufreq_driver_lock, flags);
for_each_cpu_mask(j, policy->cpus) {
Expand Down

0 comments on commit 7ed3504

Please sign in to comment.