Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 110802
b: refs/heads/master
c: 4f6e6b9
h: refs/heads/master
v: v3
  • Loading branch information
Andrea Righi authored and Dave Jones committed Oct 9, 2008
1 parent e079725 commit b69ffb4
Show file tree
Hide file tree
Showing 2 changed files with 5 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: c4d14bc0bb5d13e316890651ae4518b764c3344c
refs/heads/master: 4f6e6b9f97b0ce98a8d1da65adbaf743bd0486a9
5 changes: 4 additions & 1 deletion trunk/drivers/cpufreq/cpufreq_ondemand.c
Original file line number Diff line number Diff line change
Expand Up @@ -640,8 +640,11 @@ static int __init cpufreq_gov_dbs_init(void)
{
int err;
cputime64_t wall;
u64 idle_time = get_cpu_idle_time_us(smp_processor_id(), &wall);
u64 idle_time;
int cpu = get_cpu();

idle_time = get_cpu_idle_time_us(cpu, &wall);
put_cpu();
if (idle_time != -1ULL) {
/* Idle micro accounting is supported. Use finer thresholds */
dbs_tuners_ins.up_threshold = MICRO_FREQUENCY_UP_THRESHOLD;
Expand Down

0 comments on commit b69ffb4

Please sign in to comment.