Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757620Ab0LBVct (ORCPT ); Thu, 2 Dec 2010 16:32:49 -0500 Received: from caramon.arm.linux.org.uk ([78.32.30.218]:37105 "EHLO caramon.arm.linux.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753044Ab0LBVcs (ORCPT ); Thu, 2 Dec 2010 16:32:48 -0500 Date: Thu, 2 Dec 2010 21:32:13 +0000 From: Russell King - ARM Linux To: Omar Ramirez Luna Cc: Greg Kroah-Hartman , Tony Lindgren , Felipe Contreras , Fernando Guzman Lugo , Rene Sapiens , linux-omap@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, devel@driverdev.osuosl.org Subject: Re: [PATCH 01/02] omap: dsp: remove shm from normal memory Message-ID: <20101202213213.GI10461@n2100.arm.linux.org.uk> References: <1289440225-27221-1-git-send-email-omar.ramirez@ti.com> <1289440225-27221-2-git-send-email-omar.ramirez@ti.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1289440225-27221-2-git-send-email-omar.ramirez@ti.com> User-Agent: Mutt/1.5.19 (2009-01-05) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 970 Lines: 25 On Wed, Nov 10, 2010 at 07:50:24PM -0600, Omar Ramirez Luna wrote: > From: Felipe Contreras > > Also, don't be picky about the location, which incidentally fixes the > build since MEMBLOCK_REAL_LIMIT is gone on 2.6.37. That comment is wrong. memblock_alloc() is still as picky as the original. phys_addr_t __init memblock_alloc(phys_addr_t size, phys_addr_t align) { return memblock_alloc_base(size, align, MEMBLOCK_ALLOC_ACCESSIBLE); } /* Pump up max_addr */ if (end == MEMBLOCK_ALLOC_ACCESSIBLE) end = memblock.current_limit; and current_limit is initialized to what was MEMBLOCK_REAL_LIMIT. So, memblock_alloc() will always allocate from lowmem. -- 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/