x86, mm: use pfn_range_is_mapped() with CPA
authorYinghai Lu <yinghai@kernel.org>
Sat, 17 Nov 2012 03:38:49 +0000 (19:38 -0800)
committerH. Peter Anvin <hpa@linux.intel.com>
Sat, 17 Nov 2012 19:59:09 +0000 (11:59 -0800)
commit8eb5779f6b9c7e390c92f451edaafc039e06e743
tree6f1706d9fdf247b4c472d50187150f3c4ce1c787
parentdda56e134059b840631fdfd034784056b627c2a6
x86, mm: use pfn_range_is_mapped() with CPA

We are going to map ram only, so under max_low_pfn_mapped,
between 4g and max_pfn_mapped does not mean mapped at all.

Use pfn_range_is_mapped() directly.

Signed-off-by: Yinghai Lu <yinghai@kernel.org>
Link: http://lkml.kernel.org/r/1353123563-3103-13-git-send-email-yinghai@kernel.org
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
arch/x86/mm/pageattr.c