x86: Use the generic page_is_ram()
authorWu Fengguang <fengguang.wu@intel.com>
Fri, 22 Jan 2010 03:21:05 +0000 (11:21 +0800)
committerH. Peter Anvin <hpa@zytor.com>
Tue, 2 Feb 2010 00:58:17 +0000 (16:58 -0800)
commit13ca0fcaa33f6b1984c4111b6ec5df42689fea6f
tree87fa03206241f2a9bf4c6a2d0b1bc883fba12c07
parent1b5576e69a5fe168c08a159685ac366316ac9bbc
x86: Use the generic page_is_ram()

The generic resource based page_is_ram() works better with memory
hotplug/hotremove. So switch the x86 e820map based code to it.

CC: Andi Kleen <andi@firstfloor.org>
CC: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
CC: Yinghai Lu <yinghai@kernel.org>
Signed-off-by: Wu Fengguang <fengguang.wu@intel.com>
LKML-Reference: <20100122033004.470767217@intel.com>
Cc: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
arch/x86/include/asm/page_types.h
arch/x86/mm/ioremap.c