Re: [PATCH] cpufreq: CPPC: Correct desired_perf calculation

2016-10-12 Thread Hoan Tran
[Resend with plain text mode] Hi Prashanth, On Wed, Oct 12, 2016 at 8:36 AM, Prakash, Prashanth wrote: > Hi Hoan, > > On 10/11/2016 3:12 PM, Hoan Tran wrote: >> The desired_perf is an abstract performance number. Its value should >> be in the range of [lowest perf, highest perf] of CPPC. >> The

Re: [PATCH] cpufreq: CPPC: Correct desired_perf calculation

2016-10-12 Thread Prakash, Prashanth
Hi Hoan, On 10/11/2016 3:12 PM, Hoan Tran wrote: > 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 > > Signed-off-by: Hoan Tran

Re: [PATCH] cpufreq: CPPC: Correct desired_perf calculation

2016-10-11 Thread Viresh Kumar
On 11-10-16, 14:12, Hoan Tran wrote: > 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 > > Signed-off-by: Hoan Tran > --- > d

Re: [PATCH] cpufreq: CPPC: Correct desired_perf calculation

2016-10-11 Thread Hoan Tran
Hi Rafael, On Tue, Oct 11, 2016 at 2:50 PM, Rafael J. Wysocki wrote: > On Tuesday, October 11, 2016 02:12:00 PM Hoan Tran wrote: >> 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 >> de

Re: [PATCH] cpufreq: CPPC: Correct desired_perf calculation

2016-10-11 Thread Rafael J. Wysocki
On Tuesday, October 11, 2016 02:12:00 PM Hoan Tran wrote: > 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 > > Signed-off-by:

[PATCH] cpufreq: CPPC: Correct desired_perf calculation

2016-10-11 Thread Hoan Tran
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 Signed-off-by: Hoan Tran --- drivers/cpufreq/cppc_cpufreq.c | 2 +- 1 file changed,