summaryrefslogtreecommitdiffstats
path: root/kernel/cpu.c
diff options
context:
space:
mode:
authorBenjamin Herrenschmidt2010-07-07 00:39:18 +0200
committerBenjamin Herrenschmidt2010-08-05 04:56:25 +0200
commit918fe8d60331f679519ab8239a7232272126da9e (patch)
treee470c3ceba4a667b77465ac3a078ce3a3fdd1ab8 /kernel/cpu.c
parentmemblock: Separate memblock_alloc_nid() and memblock_alloc_try_nid() (diff)
downloadkernel-qcow2-linux-918fe8d60331f679519ab8239a7232272126da9e.tar.gz
kernel-qcow2-linux-918fe8d60331f679519ab8239a7232272126da9e.tar.xz
kernel-qcow2-linux-918fe8d60331f679519ab8239a7232272126da9e.zip
memblock: Make memblock_alloc_try_nid() fallback to MEMBLOCK_ALLOC_ANYWHERE
memblock_alloc_nid() used to fallback to allocating anywhere by using memblock_alloc() as a fallback. However, some of my previous patches limit memblock_alloc() to the region covered by MEMBLOCK_ALLOC_ACCESSIBLE which is not quite what we want for memblock_alloc_try_nid(). So we fix it by explicitely using MEMBLOCK_ALLOC_ANYWHERE. Not that so far only sparc uses memblock_alloc_nid() and it hasn't been updated to clamp the accessible zone yet. Thus the temporary "breakage" should have no effect. Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'kernel/cpu.c')
0 files changed, 0 insertions, 0 deletions