]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commit
memblock/nobootmem: allow alloc_bootmem() to take 0 as low limit
authorYinghai Lu <yinghai@kernel.org>
Wed, 25 May 2011 00:12:37 +0000 (17:12 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 25 May 2011 15:39:30 +0000 (08:39 -0700)
commit8bba154ef29e16331e578029e9050c74b87b7ff9
tree9dc8ecea8b09d82f72de2dfae367c3a6086e3eb1
parent172703b08cd05e2d5196ac13e94cc186f629d58b
memblock/nobootmem: allow alloc_bootmem() to take 0 as low limit

The bootmem wrapper with memblock supports top-down now, so we do not need
to set the low limit to __pa(MAX_DMA_ADDRESS).

The logic should be: good to allocate above __pa(MAX_DMA_ADDRESS), but it
is ok if we can not find memory above 16M on system that has a small
amount of RAM.

Signed-off-by: Yinghai LU <yinghai@kernel.org>
Cc: Ingo Molnar <mingo@elte.hu>
Cc: "H. Peter Anvin" <hpa@zytor.com>
Cc: Olaf Hering <olaf@aepfle.de>
Cc: Tejun Heo <tj@kernel.org>
Cc: Lucas De Marchi <lucas.demarchi@profusion.mobi>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
include/linux/bootmem.h