aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorViresh Kumar <viresh.kumar@linaro.org>2018-10-29 03:17:40 -0400
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2018-11-07 07:29:04 -0500
commit8d72ee3266f08fd3490011ee7b95ffc31e66fd6d (patch)
tree87ee5e61f7061b6ff07415f73f49eaae2f072478
parent651022382c7f8da46cb4872a545ee1da6d097d2a (diff)
Documentation: cpu-freq: Frequencies aren't always sorted
The order in which the frequencies are displayed in cpufreq stats depends on the order in which the frequencies were sorted in the frequency table provided to cpufreq core by the cpufreq driver. They can be completely unsorted as well. The documentation's claim that the stats will be sorted in descending order is hence incorrect and here is an attempt to fix it. Reported-by: Pavel <pavel2000@ngs.ru> Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
-rw-r--r--Documentation/cpu-freq/cpufreq-stats.txt8
1 files changed, 5 insertions, 3 deletions
diff --git a/Documentation/cpu-freq/cpufreq-stats.txt b/Documentation/cpu-freq/cpufreq-stats.txt
index a873855c811d..14378cecb172 100644
--- a/Documentation/cpu-freq/cpufreq-stats.txt
+++ b/Documentation/cpu-freq/cpufreq-stats.txt
@@ -86,9 +86,11 @@ transitions.
86This will give a fine grained information about all the CPU frequency 86This will give a fine grained information about all the CPU frequency
87transitions. The cat output here is a two dimensional matrix, where an entry 87transitions. The cat output here is a two dimensional matrix, where an entry
88<i,j> (row i, column j) represents the count of number of transitions from 88<i,j> (row i, column j) represents the count of number of transitions from
89Freq_i to Freq_j. Freq_i is in descending order with increasing rows and 89Freq_i to Freq_j. Freq_i rows and Freq_j columns follow the sorting order in
90Freq_j is in descending order with increasing columns. The output here also 90which the driver has provided the frequency table initially to the cpufreq core
91contains the actual freq values for each row and column for better readability. 91and so can be sorted (ascending or descending) or unsorted. The output here
92also contains the actual freq values for each row and column for better
93readability.
92 94
93If the transition table is bigger than PAGE_SIZE, reading this will 95If the transition table is bigger than PAGE_SIZE, reading this will
94return an -EFBIG error. 96return an -EFBIG error.