diff options
Diffstat (limited to 'arch/x86/mm')
-rw-r--r-- | arch/x86/mm/ioremap.c | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/arch/x86/mm/ioremap.c b/arch/x86/mm/ioremap.c index 30e068d6462e..1bf9e08ed733 100644 --- a/arch/x86/mm/ioremap.c +++ b/arch/x86/mm/ioremap.c | |||
@@ -24,27 +24,6 @@ | |||
24 | 24 | ||
25 | #include "physaddr.h" | 25 | #include "physaddr.h" |
26 | 26 | ||
27 | int page_is_ram(unsigned long pagenr) | ||
28 | { | ||
29 | resource_size_t addr, end; | ||
30 | int i; | ||
31 | |||
32 | for (i = 0; i < e820.nr_map; i++) { | ||
33 | /* | ||
34 | * Not usable memory: | ||
35 | */ | ||
36 | if (e820.map[i].type != E820_RAM) | ||
37 | continue; | ||
38 | addr = (e820.map[i].addr + PAGE_SIZE-1) >> PAGE_SHIFT; | ||
39 | end = (e820.map[i].addr + e820.map[i].size) >> PAGE_SHIFT; | ||
40 | |||
41 | |||
42 | if ((pagenr >= addr) && (pagenr < end)) | ||
43 | return 1; | ||
44 | } | ||
45 | return 0; | ||
46 | } | ||
47 | |||
48 | /* | 27 | /* |
49 | * Fix up the linear direct mapping of the kernel to avoid cache attribute | 28 | * Fix up the linear direct mapping of the kernel to avoid cache attribute |
50 | * conflicts. | 29 | * conflicts. |