kernel-ark/arch/sparc
Benjamin Herrenschmidt e63075a3c9 memblock: Introduce default allocation limit and use it to replace explicit ones
This introduce memblock.current_limit which is used to limit allocations
from memblock_alloc() or memblock_alloc_base(..., MEMBLOCK_ALLOC_ACCESSIBLE).

The old MEMBLOCK_ALLOC_ANYWHERE changes value from 0 to ~(u64)0 and can still
be used with memblock_alloc_base() to allocate really anywhere.

It is -no-longer- cropped to MEMBLOCK_REAL_LIMIT which disappears.

Note to archs: I'm leaving the default limit to MEMBLOCK_ALLOC_ANYWHERE. I
strongly recommend that you ensure that you set an appropriate limit
during boot in order to guarantee that an memblock_alloc() at any time
results in something that is accessible with a simple __va().

The reason is that a subsequent patch will introduce the ability for
the array to resize itself by reallocating itself. The MEMBLOCK core will
honor the current limit when performing those allocations.

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
2010-08-05 12:56:07 +10:00
..
boot Rename .data.init to .data..init. 2010-03-03 11:26:01 +01:00
configs sparc64: Update defconfig. 2010-05-26 21:18:23 -07:00
include/asm memblock: Introduce default allocation limit and use it to replace explicit ones 2010-08-05 12:56:07 +10:00
kernel Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/sparc-2.6 2010-07-21 09:28:50 -07:00
lib sparc64: Allocate sufficient stack space in ftrace stubs. 2010-04-13 18:59:02 -07:00
math-emu Revert "endian: #define __BYTE_ORDER" 2010-05-26 08:30:15 -07:00
mm memblock: Remove nid_range argument, arch provides memblock_nid_range() instead 2010-08-05 12:56:04 +10:00
oprofile
prom sparc64: Make prom entry spinlock NMI safe. 2010-03-03 09:06:03 -08:00
Kconfig lmb: rename to memblock 2010-07-14 17:14:00 +10:00
Kconfig.debug sparc64: Kill CONFIG_STACK_DEBUG code. 2010-04-12 22:36:03 -07:00
Makefile