Revision 238305bb4d418c95977162ba13c11880685fc731 authored by Johannes Weiner on 29 May 2012, 22:06:36 UTC, committed by Linus Torvalds on 29 May 2012, 23:22:22 UTC
alloc_bootmem_section() derives allocation area constraints from the
specified sparsemem section.  This is a bit specific for a generic memory
allocator like bootmem, though, so move it over to sparsemem.

As __alloc_bootmem_node_nopanic() already retries failed allocations with
relaxed area constraints, the fallback code in sparsemem.c can be removed
and the code becomes a bit more compact overall.

[akpm@linux-foundation.org: fix build]
Signed-off-by: Johannes Weiner <hannes@cmpxchg.org>
Acked-by: Tejun Heo <tj@kernel.org>
Acked-by: David S. Miller <davem@davemloft.net>
Cc: Yinghai Lu <yinghai@kernel.org>
Cc: Gavin Shan <shangw@linux.vnet.ibm.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent e907991
History
File Mode Size
Kconfig -rw-r--r-- 5.4 KB
Makefile -rw-r--r-- 790 bytes
README.dino -rw-r--r-- 1.0 KB
asp.c -rw-r--r-- 3.5 KB
ccio-dma.c -rw-r--r-- 47.8 KB
ccio-rm-dma.c -rw-r--r-- 5.1 KB
dino.c -rw-r--r-- 30.3 KB
eisa.c -rw-r--r-- 11.5 KB
eisa_eeprom.c -rw-r--r-- 2.9 KB
eisa_enumerator.c -rw-r--r-- 11.5 KB
gsc.c -rw-r--r-- 5.6 KB
gsc.h -rw-r--r-- 1.5 KB
hppb.c -rw-r--r-- 2.8 KB
iommu-helpers.h -rw-r--r-- 4.5 KB
iosapic.c -rw-r--r-- 27.0 KB
iosapic_private.h -rw-r--r-- 5.7 KB
lasi.c -rw-r--r-- 6.2 KB
lba_pci.c -rw-r--r-- 46.2 KB
led.c -rw-r--r-- 19.9 KB
pdc_stable.c -rw-r--r-- 30.2 KB
power.c -rw-r--r-- 7.3 KB
sba_iommu.c -rw-r--r-- 57.8 KB
superio.c -rw-r--r-- 13.9 KB
wax.c -rw-r--r-- 3.2 KB

README.dino

back to top