From patchwork Wed Dec 9 18:43:51 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Santosh Shilimkar X-Patchwork-Id: 66038 X-Patchwork-Delegate: tony@atomide.com Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id nB9IiKl3014759 for ; Wed, 9 Dec 2009 18:44:20 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756987AbZLISoM (ORCPT ); Wed, 9 Dec 2009 13:44:12 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1756986AbZLISoL (ORCPT ); Wed, 9 Dec 2009 13:44:11 -0500 Received: from arroyo.ext.ti.com ([192.94.94.40]:53925 "EHLO arroyo.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756925AbZLISoK (ORCPT ); Wed, 9 Dec 2009 13:44:10 -0500 Received: from dbdp31.itg.ti.com ([172.24.170.98]) by arroyo.ext.ti.com (8.13.7/8.13.7) with ESMTP id nB9IhsYK031581 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 9 Dec 2009 12:43:58 -0600 Received: from linfarm476.india.ti.com (localhost [127.0.0.1]) by dbdp31.itg.ti.com (8.13.8/8.13.8) with ESMTP id nB9IhrBI023491; Thu, 10 Dec 2009 00:13:53 +0530 (IST) Received: from linfarm476.india.ti.com (localhost [127.0.0.1]) by linfarm476.india.ti.com (8.12.11/8.12.11) with ESMTP id nB9IhrQg002377; Thu, 10 Dec 2009 00:13:53 +0530 Received: (from a0393909@localhost) by linfarm476.india.ti.com (8.12.11/8.12.11/Submit) id nB9IhrY8002375; Thu, 10 Dec 2009 00:13:53 +0530 From: Santosh Shilimkar To: tony@atomide.com Cc: linux-arm-kernel@lists.infradead.org, linux-omap@vger.kernel.org, linux@arm.linux.org.uk, Santosh Shilimkar Subject: [PATCH 2/4] OMAP4: Clean the secondary_data from L2 Date: Thu, 10 Dec 2009 00:13:51 +0530 Message-Id: <1260384233-2278-2-git-send-email-santosh.shilimkar@ti.com> X-Mailer: git-send-email 1.5.5 In-Reply-To: <1260384233-2278-1-git-send-email-santosh.shilimkar@ti.com> References: <1260384233-2278-1-git-send-email-santosh.shilimkar@ti.com> Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org diff --git a/arch/arm/mach-omap2/omap-smp.c b/arch/arm/mach-omap2/omap-smp.c index 38153e5..2d0733a 100644 --- a/arch/arm/mach-omap2/omap-smp.c +++ b/arch/arm/mach-omap2/omap-smp.c @@ -73,6 +73,8 @@ int __cpuinit boot_secondary(unsigned int cpu, struct task_struct *idle) * the AuxCoreBoot1 register is updated with cpu state * A barrier is added to ensure that write buffer is drained */ + flush_cache_all(); + outer_clean_range(__pa(&secondary_data), __pa(&secondary_data + 1)); omap_modify_auxcoreboot0(0x200, 0x0); flush_cache_all(); smp_wmb();