From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from wolverine02.qualcomm.com ([199.106.114.251]:60728 "EHLO wolverine02.qualcomm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755002Ab0LBWMe (ORCPT ); Thu, 2 Dec 2010 17:12:34 -0500 From: Jeff Ohlstein Subject: [PATCH] arm: dma-mapping: move consistent_init to early_initcall Date: Thu, 2 Dec 2010 14:11:18 -0800 Message-Id: <1291327879-28073-1-git-send-email-johlstei@codeaurora.org> Sender: linux-arm-msm-owner@vger.kernel.org List-ID: To: Russell King Cc: linux-arm-msm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, dwalker@codeaurora.org, Jeff Ohlstein , Catalin Marinas , Nicolas Pitre , Tejun Heo Some machines require the use of coherent memory to bring up auxillary cpus, and thus want to use dma_alloc_coherent prior to smp_init completing. Signed-off-by: Jeff Ohlstein --- arch/arm/mm/dma-mapping.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/arch/arm/mm/dma-mapping.c b/arch/arm/mm/dma-mapping.c index ac6a361..d46ce8d 100644 --- a/arch/arm/mm/dma-mapping.c +++ b/arch/arm/mm/dma-mapping.c @@ -177,7 +177,7 @@ static int __init consistent_init(void) return ret; } -core_initcall(consistent_init); +early_initcall(consistent_init); static void * __dma_alloc_remap(struct page *page, size_t size, gfp_t gfp, pgprot_t prot) -- Sent by an employee of the Qualcomm Innovation Center, Inc. The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum.