Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 19159
b: refs/heads/master
c: 0961dd0
h: refs/heads/master
i:
  19157: bd3498d
  19155: 9c28e01
  19151: c11b068
v: v3
  • Loading branch information
Thomas Renninger authored and Dave Jones committed Jan 26, 2006
1 parent 6e580d0 commit e80e026
Show file tree
Hide file tree
Showing 2 changed files with 9 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: c70ca00f77eb1bb69c5a2d029b3a911bc88eac1b
refs/heads/master: 0961dd0d217d072df736d964f47c2b6600931e19
8 changes: 8 additions & 0 deletions trunk/drivers/cpufreq/cpufreq.c
Original file line number Diff line number Diff line change
Expand Up @@ -1429,6 +1429,14 @@ int cpufreq_update_policy(unsigned int cpu)
policy.policy = data->user_policy.policy;
policy.governor = data->user_policy.governor;

/* BIOS might change freq behind our back
-> ask driver for current freq and notify governors about a change */
if (cpufreq_driver->get) {
policy.cur = cpufreq_driver->get(cpu);
if (data->cur != policy.cur)
cpufreq_out_of_sync(cpu, data->cur, policy.cur);
}

ret = __cpufreq_set_policy(data, &policy);

mutex_unlock(&data->lock);
Expand Down

0 comments on commit e80e026

Please sign in to comment.