diff options
| author | Hoan Tran <[email protected]> | 2016-10-13 17:33:35 +0000 |
|---|---|---|
| committer | Rafael J. Wysocki <[email protected]> | 2016-10-13 21:10:41 +0000 |
| commit | c197d758036d8c77923ae3f88571cf198283107e (patch) | |
| tree | 9dea7912efc8aa2036eec6c157403643a3e07f5a /net/switchdev/switchdev.c | |
| parent | cpufreq: conservative: Fix next frequency selection (diff) | |
| download | kernel-c197d758036d8c77923ae3f88571cf198283107e.tar.gz kernel-c197d758036d8c77923ae3f88571cf198283107e.zip | |
cpufreq: CPPC: Correct desired_perf calculation
The desired_perf is an abstract performance number. Its value should
be in the range of [lowest perf, highest perf] of CPPC.
The correct calculation is
desired_perf = freq * cppc_highest_perf / cppc_dmi_max_khz
And cppc_cpufreq_set_target() returns if desired_perf is exactly
the same with the old perf.
Signed-off-by: Hoan Tran <[email protected]>
Reviewed-by: Prashanth Prakash <[email protected]>
Signed-off-by: Rafael J. Wysocki <[email protected]>
Diffstat (limited to 'net/switchdev/switchdev.c')
0 files changed, 0 insertions, 0 deletions
