Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 132673
b: refs/heads/master
c: f407a08
h: refs/heads/master
i:
  132671: f1f51d2
v: v3
  • Loading branch information
Alexander Clouter authored and Dave Jones committed Feb 25, 2009
1 parent 4a7b629 commit 9c0b01d
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 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: 11a80a9c7668c40c40a03ae15bd2c6b215058b2e
refs/heads/master: f407a08bb7eff5ddbe0d9173d8717794a910771f
13 changes: 12 additions & 1 deletion trunk/drivers/cpufreq/cpufreq_conservative.c
Original file line number Diff line number Diff line change
Expand Up @@ -137,10 +137,21 @@ dbs_cpufreq_notifier(struct notifier_block *nb, unsigned long val,
struct cpu_dbs_info_s *this_dbs_info = &per_cpu(cpu_dbs_info,
freq->cpu);

struct cpufreq_policy *policy;

if (!this_dbs_info->enable)
return 0;

this_dbs_info->requested_freq = freq->new;
policy = this_dbs_info->cur_policy;

/*
* we only care if our internally tracked freq moves outside
* the 'valid' ranges of freqency available to us otherwise
* we do not change it
*/
if (this_dbs_info->requested_freq > policy->max
|| this_dbs_info->requested_freq < policy->min)
this_dbs_info->requested_freq = freq->new;

return 0;
}
Expand Down

0 comments on commit 9c0b01d

Please sign in to comment.