memblock, nobootmem: add memblock_virt_alloc_low()
authorYinghai Lu <yinghai@kernel.org>
Tue, 28 Jan 2014 01:06:49 +0000 (17:06 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 28 Jan 2014 05:02:38 +0000 (21:02 -0800)
commitad6492b80f60a2139fa9bf8fd79b182fe5e3647c
treef52530fb2240679a0f88ba5047a3bedc6dacf796
parentba635f8cd20ebc7bddf1eb8e1f4eae28a034e916
memblock, nobootmem: add memblock_virt_alloc_low()

The new memblock_virt APIs are used to replaced old bootmem API.

We need to allocate page below 4G for swiotlb.

That should fix regression on Andrew's system that is using swiotlb.

Signed-off-by: Yinghai Lu <yinghai@kernel.org>
Cc: Russell King <linux@arm.linux.org.uk>
Cc: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Acked-by: Santosh Shilimkar <santosh.shilimkar@ti.com>
Cc: Dave Hansen <dave.hansen@intel.com>
Cc: Ingo Molnar <mingo@elte.hu>
Cc: "H. Peter Anvin" <hpa@zytor.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
arch/arm/kernel/setup.c
include/linux/bootmem.h
lib/swiotlb.c