diff options
author | Viresh Kumar <viresh.kumar@linaro.org> | 2013-06-19 04:49:33 -0400 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2013-06-20 19:06:34 -0400 |
commit | bb176f7d038fee4d46b3293e64e173bfb05ab7b5 (patch) | |
tree | 3083ebddffa88ffe7e4889dc1ba618bb55c89953 /drivers/cpufreq/cpufreq_stats.c | |
parent | 95731ebb114c5f0c028459388560fc2a72fe5049 (diff) |
cpufreq: Fix minor formatting issues
There were a few noticeable formatting issues in core cpufreq code.
This cleans them up to make code look better. The changes include:
- Whitespace cleanup.
- Rearrangements of code.
- Multiline comments fixes.
- Formatting changes to fit 80 columns.
Copyright information in cpufreq.c is also updated to include my name
for 2013.
[rjw: Changelog]
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_stats.c')
-rw-r--r-- | drivers/cpufreq/cpufreq_stats.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/cpufreq/cpufreq_stats.c b/drivers/cpufreq/cpufreq_stats.c index fb65decffa28..6d35caa91167 100644 --- a/drivers/cpufreq/cpufreq_stats.c +++ b/drivers/cpufreq/cpufreq_stats.c | |||
@@ -27,7 +27,7 @@ static spinlock_t cpufreq_stats_lock; | |||
27 | struct cpufreq_stats { | 27 | struct cpufreq_stats { |
28 | unsigned int cpu; | 28 | unsigned int cpu; |
29 | unsigned int total_trans; | 29 | unsigned int total_trans; |
30 | unsigned long long last_time; | 30 | unsigned long long last_time; |
31 | unsigned int max_state; | 31 | unsigned int max_state; |
32 | unsigned int state_num; | 32 | unsigned int state_num; |
33 | unsigned int last_index; | 33 | unsigned int last_index; |
@@ -116,7 +116,7 @@ static ssize_t show_trans_table(struct cpufreq_policy *policy, char *buf) | |||
116 | len += snprintf(buf + len, PAGE_SIZE - len, "%9u: ", | 116 | len += snprintf(buf + len, PAGE_SIZE - len, "%9u: ", |
117 | stat->freq_table[i]); | 117 | stat->freq_table[i]); |
118 | 118 | ||
119 | for (j = 0; j < stat->state_num; j++) { | 119 | for (j = 0; j < stat->state_num; j++) { |
120 | if (len >= PAGE_SIZE) | 120 | if (len >= PAGE_SIZE) |
121 | break; | 121 | break; |
122 | len += snprintf(buf + len, PAGE_SIZE - len, "%9u ", | 122 | len += snprintf(buf + len, PAGE_SIZE - len, "%9u ", |