Skip to content

Commit

Permalink
[CPUFREQ] conservative: remove 10x from def_sampling_rate
Browse files Browse the repository at this point in the history
AMD users get particular hit by this issue (bug 8081) as it caps at
typically 90 seconds as the minimum period for a frequency change.
Harsh eh?  Years ago I borked this buy puting the 10x in the wrong
place...I fix that by removing it altogether.

Signed-off-by: Alexander Clouter <alex@digriz.org.uk>
Signed-off-by: Dave Jones <davej@redhat.com>
  • Loading branch information
Alexander Clouter authored and Dave Jones committed Feb 25, 2009
1 parent 8e677ce commit a75603a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/cpufreq/cpufreq_conservative.c
Original file line number Diff line number Diff line change
Expand Up @@ -599,7 +599,7 @@ static int cpufreq_governor_dbs(struct cpufreq_policy *policy,
latency = 1;

def_sampling_rate =
max(10 * latency * LATENCY_MULTIPLIER,
max(latency * LATENCY_MULTIPLIER,
MIN_STAT_SAMPLING_RATE);

dbs_tuners_ins.sampling_rate = def_sampling_rate;
Expand Down

0 comments on commit a75603a

Please sign in to comment.