From patchwork Wed May 18 17:32:27 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jean Pihet X-Patchwork-Id: 794252 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id p4IHX0V6006522 for ; Wed, 18 May 2011 17:33:00 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933342Ab1ERRc7 (ORCPT ); Wed, 18 May 2011 13:32:59 -0400 Received: from mail-yi0-f46.google.com ([209.85.218.46]:43729 "EHLO mail-yi0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933339Ab1ERRc6 (ORCPT ); Wed, 18 May 2011 13:32:58 -0400 Received: by mail-yi0-f46.google.com with SMTP id 27so622746yia.19 for ; Wed, 18 May 2011 10:32:58 -0700 (PDT) Received: by 10.236.184.6 with SMTP id r6mr2461205yhm.248.1305739978303; Wed, 18 May 2011 10:32:58 -0700 (PDT) Received: from localhost.localdomain (c-24-19-7-36.hsd1.wa.comcast.net [24.19.7.36]) by mx.google.com with ESMTPS id p24sm766108yhm.14.2011.05.18.10.32.57 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 18 May 2011 10:32:58 -0700 (PDT) From: jean.pihet@newoldbits.com To: linux-omap@vger.kernel.org Subject: [PATCH 10/13] OMAP3: PM: export the v7_flush_dcache_all API to modules Date: Wed, 18 May 2011 19:32:27 +0200 Message-Id: <1305739950-11695-11-git-send-email-j-pihet@ti.com> X-Mailer: git-send-email 1.7.4.1 In-Reply-To: <1305739950-11695-1-git-send-email-j-pihet@ti.com> References: <1305739950-11695-1-git-send-email-j-pihet@ti.com> Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter1.kernel.org [140.211.167.41]); Wed, 18 May 2011 17:33:00 +0000 (UTC) From: Jean Pihet Provide the the assembly function v7_flush_dcache_all to the OMAP3 PM module, under CONFIG_CPU_V7. v7_flush_dcache_all is used by the low level sleep code. Signed-off-by: Jean Pihet --- arch/arm/mach-omap2/pm.c | 4 ++++ arch/arm/mach-omap2/pm.h | 4 ++++ 2 files changed, 8 insertions(+), 0 deletions(-) diff --git a/arch/arm/mach-omap2/pm.c b/arch/arm/mach-omap2/pm.c index 2e43fd6..ab69c5a 100644 --- a/arch/arm/mach-omap2/pm.c +++ b/arch/arm/mach-omap2/pm.c @@ -325,6 +325,10 @@ unsigned long omap_pm_tick_nohz_get_sleep_length_us(void) EXPORT_SYMBOL(omap_pm_tick_nohz_get_sleep_length_us); #endif +#ifdef CONFIG_CPU_V7 +EXPORT_SYMBOL(v7_flush_dcache_all); +#endif + #ifdef CONFIG_SUSPEND void omap_pm_suspend_set_ops(struct platform_suspend_ops *pm_ops) { diff --git a/arch/arm/mach-omap2/pm.h b/arch/arm/mach-omap2/pm.h index d1bc6a3..194e883 100644 --- a/arch/arm/mach-omap2/pm.h +++ b/arch/arm/mach-omap2/pm.h @@ -80,6 +80,10 @@ extern u32 sleep_while_idle; extern unsigned long omap_pm_tick_nohz_get_sleep_length_us(void); #endif +#ifdef CONFIG_CPU_V7 +extern void v7_flush_dcache_all(void); +#endif + #ifdef CONFIG_SUSPEND extern void omap_pm_suspend_set_ops(struct platform_suspend_ops *pm_ops); #endif