Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 33166
b: refs/heads/master
c: ea71497
h: refs/heads/master
v: v3
  • Loading branch information
Jeremy Fitzhardinge authored and Dave Jones committed Jul 31, 2006
1 parent b291e19 commit e324043
Show file tree
Hide file tree
Showing 2 changed files with 18 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: 3bcb09a35641f2840bd59d8f82154f830dca282c
refs/heads/master: ea71497020c55cd39221e0abad5c1752ac6e3f47
17 changes: 17 additions & 0 deletions trunk/drivers/cpufreq/cpufreq.c
Original file line number Diff line number Diff line change
Expand Up @@ -321,6 +321,23 @@ static int cpufreq_parse_governor (char *str_governor, unsigned int *policy,

t = __find_governor(str_governor);

if (t == NULL) {
char *name = kasprintf(GFP_KERNEL, "cpufreq_%s", str_governor);

if (name) {
int ret;

mutex_unlock(&cpufreq_governor_mutex);
ret = request_module(name);
mutex_lock(&cpufreq_governor_mutex);

if (ret == 0)
t = __find_governor(str_governor);
}

kfree(name);
}

if (t != NULL) {
*governor = t;
err = 0;
Expand Down

0 comments on commit e324043

Please sign in to comment.