Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756953AbcJMVMV (ORCPT ); Thu, 13 Oct 2016 17:12:21 -0400 Received: from mail-qk0-f173.google.com ([209.85.220.173]:34895 "EHLO mail-qk0-f173.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756854AbcJMVML (ORCPT ); Thu, 13 Oct 2016 17:12:11 -0400 MIME-Version: 1.0 In-Reply-To: References: <1476380015-21001-1-git-send-email-hotran@apm.com> From: "Rafael J. Wysocki" Date: Thu, 13 Oct 2016 23:12:09 +0200 X-Google-Sender-Auth: 6uwUMMa34cEQ5z_koVDCa9RlmAg Message-ID: Subject: Re: [PATCH v2] cpufreq: CPPC: Correct desired_perf calculation To: "Prakash, Prashanth" Cc: Hoan Tran , "Rafael J. Wysocki" , Viresh Kumar , Al Stone , Linux PM , Linux Kernel Mailing List , lho@apm.com, Duc Dang , Christopher Covington Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 678 Lines: 21 On Thu, Oct 13, 2016 at 9:37 PM, Prakash, Prashanth wrote: > On 10/13/2016 11:33 AM, 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 >> >> And cppc_cpufreq_set_target() returns if desired_perf is exactly >> the same with the old perf. >> >> Signed-off-by: Hoan Tran > Reviewed-by: Prashanth Prakash > > Hi Rafael, > Can you please pick this one for 4.9, as it is bug fix? Sure, I will queue it up. Thanks, Rafael