Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756757AbcJMTrD (ORCPT ); Thu, 13 Oct 2016 15:47:03 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:55796 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756677AbcJMTqk (ORCPT ); Thu, 13 Oct 2016 15:46:40 -0400 DMARC-Filter: OpenDMARC Filter v1.3.1 smtp.codeaurora.org B32966029D Authentication-Results: pdx-caf-mail.web.codeaurora.org; dmarc=none header.from=codeaurora.org Authentication-Results: pdx-caf-mail.web.codeaurora.org; spf=pass smtp.mailfrom=pprakash@codeaurora.org Subject: Re: [PATCH v2] cpufreq: CPPC: Correct desired_perf calculation To: Hoan Tran , "Rafael J. Wysocki" , Viresh Kumar , Al Stone References: <1476380015-21001-1-git-send-email-hotran@apm.com> Cc: linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, lho@apm.com, Duc Dang , Christopher Covington From: "Prakash, Prashanth" Message-ID: Date: Thu, 13 Oct 2016 13:37:11 -0600 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.4.0 MIME-Version: 1.0 In-Reply-To: <1476380015-21001-1-git-send-email-hotran@apm.com> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 554 Lines: 18 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? -- Thanks, Prashanth