Message ID | 528C4E6F.20507@linaro.org |
---|---|
State | New |
Headers | show |
diff --git a/drivers/cpufreq/cpufreq_stats.c b/drivers/cpufreq/cpufreq_stats.c index ebb21cd..89012d1 100644 --- a/drivers/cpufreq/cpufreq_stats.c +++ b/drivers/cpufreq/cpufreq_stats.c @@ -73,9 +73,9 @@ static ssize_t show_time_in_state(struct cpufreq_policy *policy, char *buf) cpufreq_stats_update(stat->cpu); for (i = 0; i < stat->state_num; i++) { if (stat->freq_table[i] == -1) - return sprintf(buf + len, "unknown"); + len+= sprintf(buf + len, "unknown"); else - return sprintf(buf + len, "%u", stat->freq_table[i]); + len+= sprintf(buf + len, "%u", stat->freq_table[i]); len += sprintf(buf + len, " %llu\n", (unsigned long long)