diff options
author | Kamalesh Babulal <kamalesh@linux.vnet.ibm.com> | 2011-12-09 05:48:42 -0500 |
---|---|---|
committer | Dave Jones <davej@redhat.com> | 2011-12-09 10:40:23 -0500 |
commit | 21f2e3c86b3746aaa462f9a2734363f4f41a641c (patch) | |
tree | a96def18c431becd6ba72e24fb74ca2f2ba0a436 /drivers/cpufreq/cpufreq_ondemand.c | |
parent | 27f805dcb058178444a9a4e380c7dcb2fe2d3a94 (diff) |
[CPUFREQ] Remove wall variable from cpufreq_gov_dbs_init()
CPUFREQ Remove wall variable from cpufreq_gov_dbs_init()
Remove wall variable from cpufreq_gov_dbs_init() as
get_cpu_idle_time_us() no longer updates the last_update_time
unconditionally. Passing non-NULL last_update_time address
will result in accounting additional idle time with
update_ts_time_stats() before returning idle_sleeptime.
Signed-off-by: Kamalesh Babulal <kamalesh@linux.vnet.ibm.com>
Signed-off-by: Dave Jones <davej@redhat.com>
--
drivers/cpufreq/cpufreq_ondemand.c | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
Diffstat (limited to 'drivers/cpufreq/cpufreq_ondemand.c')
-rw-r--r-- | drivers/cpufreq/cpufreq_ondemand.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/cpufreq/cpufreq_ondemand.c b/drivers/cpufreq/cpufreq_ondemand.c index fa8af4ebb1d6..53ad4c780744 100644 --- a/drivers/cpufreq/cpufreq_ondemand.c +++ b/drivers/cpufreq/cpufreq_ondemand.c | |||
@@ -715,11 +715,10 @@ static int cpufreq_governor_dbs(struct cpufreq_policy *policy, | |||
715 | 715 | ||
716 | static int __init cpufreq_gov_dbs_init(void) | 716 | static int __init cpufreq_gov_dbs_init(void) |
717 | { | 717 | { |
718 | cputime64_t wall; | ||
719 | u64 idle_time; | 718 | u64 idle_time; |
720 | int cpu = get_cpu(); | 719 | int cpu = get_cpu(); |
721 | 720 | ||
722 | idle_time = get_cpu_idle_time_us(cpu, &wall); | 721 | idle_time = get_cpu_idle_time_us(cpu, NULL); |
723 | put_cpu(); | 722 | put_cpu(); |
724 | if (idle_time != -1ULL) { | 723 | if (idle_time != -1ULL) { |
725 | /* Idle micro accounting is supported. Use finer thresholds */ | 724 | /* Idle micro accounting is supported. Use finer thresholds */ |