x86, mm: use pfn_range_is_mapped() with gart
authorYinghai Lu <yinghai@kernel.org>
Sat, 17 Nov 2012 03:38:50 +0000 (19:38 -0800)
committerH. Peter Anvin <hpa@linux.intel.com>
Sat, 17 Nov 2012 19:59:10 +0000 (11:59 -0800)
commit5101730cb0613b91d40b9bb7be6bb023d2f6aa24
tree34264f77099265a65e2b37354fe23d257da7c52f
parent8eb5779f6b9c7e390c92f451edaafc039e06e743
x86, mm: use pfn_range_is_mapped() with gart

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-14-git-send-email-yinghai@kernel.org
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
arch/x86/kernel/amd_gart_64.c