Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 32157
b: refs/heads/master
c: a496e25
h: refs/heads/master
i:
  32155: b1a9ea4
v: v3
  • Loading branch information
Dave Jones authored and Linus Torvalds committed Jul 7, 2006
1 parent eb361e6 commit ec2ed4c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 120bda20c6f64b32e8bfbdd7b34feafaa5f5332e
refs/heads/master: a496e25dfb25493a57bcee5d66875d6ff80a9093
4 changes: 4 additions & 0 deletions trunk/drivers/cpufreq/cpufreq.c
Original file line number Diff line number Diff line change
Expand Up @@ -423,6 +423,8 @@ static ssize_t store_scaling_governor (struct cpufreq_policy * policy,
if (cpufreq_parse_governor(str_governor, &new_policy.policy, &new_policy.governor))
return -EINVAL;

lock_cpu_hotplug();

/* Do not use cpufreq_set_policy here or the user_policy.max
will be wrongly overridden */
mutex_lock(&policy->lock);
Expand All @@ -432,6 +434,8 @@ static ssize_t store_scaling_governor (struct cpufreq_policy * policy,
policy->user_policy.governor = policy->governor;
mutex_unlock(&policy->lock);

unlock_cpu_hotplug();

return ret ? ret : count;
}

Expand Down

0 comments on commit ec2ed4c

Please sign in to comment.