From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752386AbdLEFlh (ORCPT ); Tue, 5 Dec 2017 00:41:37 -0500 Received: from mail-pf0-f193.google.com ([209.85.192.193]:39200 "EHLO mail-pf0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751934AbdLEFle (ORCPT ); Tue, 5 Dec 2017 00:41:34 -0500 X-Google-Smtp-Source: AGs4zMYxlcXtVA9hvtDwpDFfZGMzWXG6RRk7oBpfHyfN6/Ey2KdPnQpboMX5vfbHRTYUKmMazSC4bQ== Date: Tue, 5 Dec 2017 11:11:30 +0530 From: Viresh Kumar To: Shilpasri G Bhat Cc: linux-pm@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org, rjw@rjwysocki.net, svaidy@linux.vnet.ibm.com, akshay.adiga@linux.vnet.ibm.com, huntbag@linux.vnet.ibm.com, "Gautham R. Shenoy" Subject: Re: [PATCH] cpufreq: powernv: Define methods to parse positive & negative pstates Message-ID: <20171205054130.vsr45ekas3f5k3cg@vireshk-mac-ubuntu> References: <1512017018-4857-1-git-send-email-shilpa.bhat@linux.vnet.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1512017018-4857-1-git-send-email-shilpa.bhat@linux.vnet.ibm.com> User-Agent: NeoMutt/20170113 (1.7.2) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 30-11-17, 10:13, Shilpasri G Bhat wrote: > From: "Gautham R. Shenoy" > > Pstates are 8bit values but on POWER8 they are negative and on POWER9 > they are positive. This patch adds helper routines to differentiate > the sign to read the correct pstate value. > > Signed-off-by: Gautham R. Shenoy > Tested-by: Shilpasri G Bhat > --- > drivers/cpufreq/powernv-cpufreq.c | 43 ++++++++++++++++++++++++++++++--------- > 1 file changed, 33 insertions(+), 10 deletions(-) Acked-by: Viresh Kumar -- viresh