Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 1740
b: refs/heads/master
c: c11420a
h: refs/heads/master
v: v3
  • Loading branch information
Dave Jones committed Jun 1, 2005
1 parent b716a6c commit b50bd4d
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: 3d5ee9e55d13de28d2fa58d6e13f2e4d3a5f8b1a
refs/heads/master: c11420a616039e2181e4ecbffb4d125d39e6877d
8 changes: 8 additions & 0 deletions trunk/drivers/cpufreq/cpufreq_ondemand.c
Original file line number Diff line number Diff line change
Expand Up @@ -333,6 +333,10 @@ static void dbs_check_cpu(int cpu)
usecs_to_jiffies(dbs_tuners_ins.sampling_rate);

if (idle_ticks < up_idle_ticks) {
/* if we are already at full speed then break out early */
if (policy->cur == policy->max)
return;

__cpufreq_driver_target(policy, policy->max,
CPUFREQ_RELATION_H);
down_skip[cpu] = 0;
Expand Down Expand Up @@ -386,6 +390,10 @@ static void dbs_check_cpu(int cpu)
usecs_to_jiffies(freq_down_sampling_rate);

if (idle_ticks > down_idle_ticks ) {
/* if we are already at the lowest speed then break out early */
if (policy->cur == policy->min)
return;

freq_down_step = (5 * policy->max) / 100;

/* max freq cannot be less than 100. But who knows.... */
Expand Down

0 comments on commit b50bd4d

Please sign in to comment.