Skip to content

Commit 4fcfd19

Browse files
gautshenrafaeljw
authored andcommitted
cpufreq: amd-pstate: Document the units for freq variables in amd_cpudata
The min_limit_freq, max_limit_freq, min_freq, max_freq, nominal_freq and the lowest_nominal_freq members of struct cpudata store the frequency value in khz to be consistent with the cpufreq core. Update the comment to document this. Reviewed-by: Li Meng <[email protected]> Tested-by: Dhananjay Ugwekar <[email protected]> Signed-off-by: Gautham R. Shenoy <[email protected]> Signed-off-by: Perry Yuan <[email protected]> Acked-by: Huang Rui <[email protected]> Signed-off-by: Rafael J. Wysocki <[email protected]>
1 parent b37ef72 commit 4fcfd19

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

include/linux/amd-pstate.h

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -51,15 +51,15 @@ struct amd_aperf_mperf {
5151
* priority.
5252
* @min_limit_perf: Cached value of the performance corresponding to policy->min
5353
* @max_limit_perf: Cached value of the performance corresponding to policy->max
54-
* @min_limit_freq: Cached value of policy->min
55-
* @max_limit_freq: Cached value of policy->max
56-
* @max_freq: the frequency that mapped to highest_perf
57-
* @min_freq: the frequency that mapped to lowest_perf
58-
* @nominal_freq: the frequency that mapped to nominal_perf
59-
* @lowest_nonlinear_freq: the frequency that mapped to lowest_nonlinear_perf
54+
* @min_limit_freq: Cached value of policy->min (in khz)
55+
* @max_limit_freq: Cached value of policy->max (in khz)
56+
* @max_freq: the frequency (in khz) that mapped to highest_perf
57+
* @min_freq: the frequency (in khz) that mapped to lowest_perf
58+
* @nominal_freq: the frequency (in khz) that mapped to nominal_perf
59+
* @lowest_nonlinear_freq: the frequency (in khz) that mapped to lowest_nonlinear_perf
6060
* @cur: Difference of Aperf/Mperf/tsc count between last and current sample
6161
* @prev: Last Aperf/Mperf/tsc count value read from register
62-
* @freq: current cpu frequency value
62+
* @freq: current cpu frequency value (in khz)
6363
* @boost_supported: check whether the Processor or SBIOS supports boost mode
6464
* @hw_prefcore: check whether HW supports preferred core featue.
6565
* Only when hw_prefcore and early prefcore param are true,

0 commit comments

Comments
 (0)