From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757484AbdKOPXI (ORCPT ); Wed, 15 Nov 2017 10:23:08 -0500 Received: from mailout.easymail.ca ([64.68.200.34]:60510 "EHLO mailout.easymail.ca" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756091AbdKOPWU (ORCPT ); Wed, 15 Nov 2017 10:22:20 -0500 Reply-To: shuah@kernel.org Subject: Re: [PATCH v3] cpupower : Fix cpupower working when cpu0 is offline To: Abhishek Goel , trenn@suse.com, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, Shuah Khan , Shuah Khan References: <20171115084002.23887-1-huntbag@linux.vnet.ibm.com> From: Shuah Khan Message-ID: <2289b9f8-d533-3fa4-1524-22613dcc520a@kernel.org> Date: Wed, 15 Nov 2017 08:22:09 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.4.0 MIME-Version: 1.0 In-Reply-To: <20171115084002.23887-1-huntbag@linux.vnet.ibm.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 11/15/2017 01:40 AM, Abhishek Goel wrote: > cpuidle_monitor used to assume that cpu0 is always online which is not > a valid assumption on POWER machines. This patch fixes this by getting > the cpu on which the current thread is running, instead of always using > cpu0 for monitoring which may not be online. > > Signed-off-by: Abhishek Goel > --- > tools/power/cpupower/utils/idle_monitor/cpuidle_sysfs.c | 9 ++++++--- > 1 file changed, 6 insertions(+), 3 deletions(-) > Thanks. I will queue this for 4.15-rc2 -- SHuah