From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752848AbdHXJsW (ORCPT ); Thu, 24 Aug 2017 05:48:22 -0400 Received: from usa-sjc-mx-foss1.foss.arm.com ([217.140.101.70]:38302 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752280AbdHXJsT (ORCPT ); Thu, 24 Aug 2017 05:48:19 -0400 Cc: Sudeep Holla , LKML , Len Brown , Linux ACPI , Peter Zijlstra , Jacob Pan , Daniel Lezcano Subject: Re: [PATCH 0/3] cpuidle: Rework the handling of the poll state To: "Rafael J. Wysocki" , Linux PM References: <21794463.WNaOdcSnfv@aspire.rjw.lan> From: Sudeep Holla Organization: ARM Message-ID: <1350530b-bed8-ab45-d5d2-dcaf4178320d@arm.com> Date: Thu, 24 Aug 2017 10:48:19 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 MIME-Version: 1.0 In-Reply-To: <21794463.WNaOdcSnfv@aspire.rjw.lan> 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 23/08/17 22:18, Rafael J. Wysocki wrote: > Hi, > > On x86 the fist idle state is a polling one, but the way it is set up is far > from straightforward and then it is avoided by governors in rather somewhat > convoluted fashion. > > Make this more clear by explicitly flagging that state as "polling" and > checking its flag where it needs to be avoided instead of using > arch-dependent numbering of idle states (patch [1/3]), move the > polling state code from driver.c to a separate C file (patch [2/3]) and > move the initialization of it from the core to the relevant cpuidle drivers - > ACPI and intel_idle (patch [3/3]). > Tested this on ARM64 platform(both DT and ACPI/LPI) and everything continues to work fine. Tested-by: Sudeep Holla -- Regards, Sudeep