diff options
author | Viresh Kumar <viresh.kumar@linaro.org> | 2018-01-03 22:23:54 -0500 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2018-01-05 07:22:46 -0500 |
commit | d476ec4f7f5aba47b0a570cbf659d7330d7e71cf (patch) | |
tree | 2bf61fa9c0ec99457370f658a045ad67624172fe | |
parent | 967b87fd81d513de7aac247320f02b1645f9ca64 (diff) |
cpufreq: stats: Change return type of cpufreq_stats_update() as void
It always returns 0 and none of its callers check its return value. Make
it return void.
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
-rw-r--r-- | drivers/cpufreq/cpufreq_stats.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/cpufreq/cpufreq_stats.c b/drivers/cpufreq/cpufreq_stats.c index 1e55b5790853..1572129844a5 100644 --- a/drivers/cpufreq/cpufreq_stats.c +++ b/drivers/cpufreq/cpufreq_stats.c | |||
@@ -27,7 +27,7 @@ struct cpufreq_stats { | |||
27 | unsigned int *trans_table; | 27 | unsigned int *trans_table; |
28 | }; | 28 | }; |
29 | 29 | ||
30 | static int cpufreq_stats_update(struct cpufreq_stats *stats) | 30 | static void cpufreq_stats_update(struct cpufreq_stats *stats) |
31 | { | 31 | { |
32 | unsigned long long cur_time = get_jiffies_64(); | 32 | unsigned long long cur_time = get_jiffies_64(); |
33 | 33 | ||
@@ -35,7 +35,6 @@ static int cpufreq_stats_update(struct cpufreq_stats *stats) | |||
35 | stats->time_in_state[stats->last_index] += cur_time - stats->last_time; | 35 | stats->time_in_state[stats->last_index] += cur_time - stats->last_time; |
36 | stats->last_time = cur_time; | 36 | stats->last_time = cur_time; |
37 | spin_unlock(&cpufreq_stats_lock); | 37 | spin_unlock(&cpufreq_stats_lock); |
38 | return 0; | ||
39 | } | 38 | } |
40 | 39 | ||
41 | static void cpufreq_stats_clear_table(struct cpufreq_stats *stats) | 40 | static void cpufreq_stats_clear_table(struct cpufreq_stats *stats) |