Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 74977
b: refs/heads/master
c: bd6cba5
h: refs/heads/master
i:
  74975: 67a2941
v: v3
  • Loading branch information
Dave Jones authored and Linus Torvalds committed Dec 18, 2007
1 parent cb3f0df commit b803168
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 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: 9548b209a37397f3036aa5bd3d5b4d3b725aa11a
refs/heads/master: bd6cba53c524dccf72900435d29722b22f61d835
12 changes: 9 additions & 3 deletions trunk/drivers/cpufreq/cpufreq.c
Original file line number Diff line number Diff line change
Expand Up @@ -841,19 +841,25 @@ static int cpufreq_add_dev (struct sys_device * sys_dev)
drv_attr = cpufreq_driver->attr;
while ((drv_attr) && (*drv_attr)) {
ret = sysfs_create_file(&policy->kobj, &((*drv_attr)->attr));
if (ret)
if (ret) {
unlock_policy_rwsem_write(cpu);
goto err_out_driver_exit;
}
drv_attr++;
}
if (cpufreq_driver->get){
ret = sysfs_create_file(&policy->kobj, &cpuinfo_cur_freq.attr);
if (ret)
if (ret) {
unlock_policy_rwsem_write(cpu);
goto err_out_driver_exit;
}
}
if (cpufreq_driver->target){
ret = sysfs_create_file(&policy->kobj, &scaling_cur_freq.attr);
if (ret)
if (ret) {
unlock_policy_rwsem_write(cpu);
goto err_out_driver_exit;
}
}

spin_lock_irqsave(&cpufreq_driver_lock, flags);
Expand Down

0 comments on commit b803168

Please sign in to comment.