From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Rafael J. Wysocki" Subject: [PATCH 0/3] cpuidle: Rework the handling of the poll state Date: Wed, 23 Aug 2017 23:18:55 +0200 Message-ID: <21794463.WNaOdcSnfv@aspire.rjw.lan> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Return-path: Sender: linux-acpi-owner@vger.kernel.org To: Linux PM Cc: LKML , Len Brown , Linux ACPI , Peter Zijlstra , Jacob Pan , Daniel Lezcano , Sudeep Holla List-Id: linux-pm@vger.kernel.org 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]). Thanks, Rafael