From mboxrd@z Thu Jan 1 00:00:00 1970 From: Arnd Bergmann Subject: Re: [PATCH 3/9] arm: add call to CPU idle quirks handler Date: Tue, 23 Jun 2015 23:59 +0200 Message-ID: <2235698.8UjxLOMCMb@wuerfel> References: <1435094387-20146-1-git-send-email-pawelo@king.net.pl> <1435094387-20146-4-git-send-email-pawelo@king.net.pl> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Return-path: In-Reply-To: <1435094387-20146-4-git-send-email-pawelo@king.net.pl> Sender: linux-gpio-owner@vger.kernel.org To: Paul Osmialowski Cc: Andrew Morton , Anson Huang , Ard Biesheuvel , Bhupesh Sharma , Daniel Lezcano , Frank Li , Geert Uytterhoeven , Greg Kroah-Hartman , Guenter Roeck , Haojian Zhuang , Ian Campbell , Jingchang Lu , Jiri Slaby , Kees Cook , Kumar Gala , Laurent Pinchart , Linus Walleij , Magnus Damm , Michael Turquette , Nathan Lynch , Nicolas Pitre , Maxime List-Id: devicetree@vger.kernel.org On Tuesday 23 June 2015 23:19:41 Paul Osmialowski wrote: > Some SoCs need additional actions to be performed after arch idle, > e.g. Kinetis requires invalidation of the I/D bus cache. > > Such handler could be held in provided header file. > > Signed-off-by: Paul Osmialowski > --- > arch/arm/Kconfig | 7 +++++++ > arch/arm/kernel/process.c | 7 +++++++ > 2 files changed, 14 insertions(+) > > diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig > index 8e3a833..8ef8f8f 100644 > --- a/arch/arm/Kconfig > +++ b/arch/arm/Kconfig > @@ -98,6 +98,13 @@ config ARM_HAS_SG_CHAIN > config NEED_SG_DMA_LENGTH > bool > > +config NEED_MACH_IDLE_H > + bool > + > +config ARM_CPU_IDLE_QUIRKS > + bool > + select NEED_MACH_IDLE_H > + We're not adding header files like this, please come up with another solution. How about a cpuidle driver, or possibly just overriding arm_pm_idle()? Arnd