diff options
author | Viresh Kumar <viresh.kumar@linaro.org> | 2012-10-25 18:51:21 -0400 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2012-11-14 18:33:08 -0500 |
commit | 1e7586a18a2ab69a160837c0a4be31f7147cfb5e (patch) | |
tree | d91de5c87bc55a0abf8c378cae8b0c2ef7a39e40 /drivers/cpufreq/cpufreq_governor.c | |
parent | 4471a34f9a1f2da220272e823bdb8e8fa83a7661 (diff) |
cpufreq: Fix sparse warnings by updating cputime64_t to u64
There were few sparse warnings due to mismatch of type on function arguments.
Two types were used u64 and cputime64_t. Both are actually u64, so use u64 only.
Reported-by: Fengguang Wu <fengguang.wu@intel.com>
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/cpufreq/cpufreq_governor.c')
-rw-r--r-- | drivers/cpufreq/cpufreq_governor.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/cpufreq/cpufreq_governor.c b/drivers/cpufreq/cpufreq_governor.c index 5ea2c829a796..be9d255e292f 100644 --- a/drivers/cpufreq/cpufreq_governor.c +++ b/drivers/cpufreq/cpufreq_governor.c | |||
@@ -50,7 +50,7 @@ static inline u64 get_cpu_idle_time_jiffy(unsigned int cpu, u64 *wall) | |||
50 | return jiffies_to_usecs(idle_time); | 50 | return jiffies_to_usecs(idle_time); |
51 | } | 51 | } |
52 | 52 | ||
53 | cputime64_t get_cpu_idle_time(unsigned int cpu, cputime64_t *wall) | 53 | u64 get_cpu_idle_time(unsigned int cpu, u64 *wall) |
54 | { | 54 | { |
55 | u64 idle_time = get_cpu_idle_time_us(cpu, NULL); | 55 | u64 idle_time = get_cpu_idle_time_us(cpu, NULL); |
56 | 56 | ||
@@ -83,7 +83,7 @@ void dbs_check_cpu(struct dbs_data *dbs_data, int cpu) | |||
83 | /* Get Absolute Load (in terms of freq for ondemand gov) */ | 83 | /* Get Absolute Load (in terms of freq for ondemand gov) */ |
84 | for_each_cpu(j, policy->cpus) { | 84 | for_each_cpu(j, policy->cpus) { |
85 | struct cpu_dbs_common_info *j_cdbs; | 85 | struct cpu_dbs_common_info *j_cdbs; |
86 | cputime64_t cur_wall_time, cur_idle_time, cur_iowait_time; | 86 | u64 cur_wall_time, cur_idle_time, cur_iowait_time; |
87 | unsigned int idle_time, wall_time, iowait_time; | 87 | unsigned int idle_time, wall_time, iowait_time; |
88 | unsigned int load; | 88 | unsigned int load; |
89 | 89 | ||