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
File | Mode | Size |
---|---|---|
Kconfig | -rw-r--r-- | 1.5 KB |
Makefile | -rw-r--r-- | 453 bytes |
address.c | -rw-r--r-- | 15.1 KB |
base.c | -rw-r--r-- | 33.5 KB |
device.c | -rw-r--r-- | 4.3 KB |
fdt.c | -rw-r--r-- | 18.2 KB |
irq.c | -rw-r--r-- | 13.8 KB |
of_i2c.c | -rw-r--r-- | 2.8 KB |
of_mdio.c | -rw-r--r-- | 5.0 KB |
of_mtd.c | -rw-r--r-- | 2.0 KB |
of_net.c | -rw-r--r-- | 3.0 KB |
of_pci.c | -rw-r--r-- | 1.0 KB |
of_pci_irq.c | -rw-r--r-- | 2.8 KB |
pdt.c | -rw-r--r-- | 5.9 KB |
platform.c | -rw-r--r-- | 12.5 KB |
selftest.c | -rw-r--r-- | 4.4 KB |
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...