Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934194AbbFWVxH (ORCPT ); Tue, 23 Jun 2015 17:53:07 -0400 Received: from fish.king.net.pl ([79.190.246.46]:36983 "EHLO king.net.pl" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S933757AbbFWVtd (ORCPT ); Tue, 23 Jun 2015 17:49:33 -0400 X-Greylist: delayed 1411 seconds by postgrey-1.27 at vger.kernel.org; Tue, 23 Jun 2015 17:49:31 EDT From: Paul Osmialowski To: Andrew Morton , Anson Huang , Ard Biesheuvel , Arnd Bergmann , 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 Coquelin stm32 , Olof Johansson , Paul Bolle , Rob Herring , Rob Herring , Russell King , Sergey Senozhatsky , Shawn Guo , Simon Horman , Stefan Agner , Stephen Boyd , Thomas Gleixner , Uwe Kleine-Koenig , Catalin Marinas , Dave Martin , Mark Rutland , Pawel Moll , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-clk@vger.kernel.org, linux-gpio@vger.kernel.org, linux-serial@vger.kernel.org, devicetree@vger.kernel.org, dmaengine@vger.kernel.org Cc: Paul Osmialowski , Yuri Tikhonov , Sergei Poselenov , Dmitry Cherkassov , Alexander Potashev Subject: [PATCH 3/9] arm: add call to CPU idle quirks handler Date: Tue, 23 Jun 2015 23:19:41 +0200 Message-Id: <1435094387-20146-4-git-send-email-pawelo@king.net.pl> X-Mailer: git-send-email 2.3.6 In-Reply-To: <1435094387-20146-1-git-send-email-pawelo@king.net.pl> References: <1435094387-20146-1-git-send-email-pawelo@king.net.pl> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1572 Lines: 62 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 + config ARM_DMA_USE_IOMMU bool select ARM_HAS_SG_CHAIN diff --git a/arch/arm/kernel/process.c b/arch/arm/kernel/process.c index f192a2a..0033460 100644 --- a/arch/arm/kernel/process.c +++ b/arch/arm/kernel/process.c @@ -37,6 +37,10 @@ #include #include +#ifdef CONFIG_NEED_MACH_IDLE_H +#include +#endif + #ifdef CONFIG_CC_STACKPROTECTOR #include unsigned long __stack_chk_guard __read_mostly; @@ -70,6 +74,9 @@ void arch_cpu_idle(void) arm_pm_idle(); else cpu_do_idle(); +#ifdef CONFIG_ARM_CPU_IDLE_QUIRKS + handle_cpu_idle_quirks(); +#endif local_irq_enable(); } -- 2.3.6 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/