diff options
author | Jeremy Fitzhardinge <jeremy@goop.org> | 2009-02-05 14:31:15 -0500 |
---|---|---|
committer | Jeremy Fitzhardinge <jeremy@goop.org> | 2009-02-06 15:31:51 -0500 |
commit | 6cf7150084500962b8e225e2409ec01ed06a2c71 (patch) | |
tree | a0ebbad726a9c6f86daf44c22c2e82c5c9d7c874 /arch/x86/include | |
parent | 7325cc2e333cdaaabd2103552458876ea85adb33 (diff) |
x86: unify io_remap_pfn_range
Impact: cleanup
Unify io_remap_pfn_range. Don't demacro yet.
Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
Diffstat (limited to 'arch/x86/include')
-rw-r--r-- | arch/x86/include/asm/pgtable.h | 3 | ||||
-rw-r--r-- | arch/x86/include/asm/pgtable_32.h | 3 | ||||
-rw-r--r-- | arch/x86/include/asm/pgtable_64.h | 3 |
3 files changed, 3 insertions, 6 deletions
diff --git a/arch/x86/include/asm/pgtable.h b/arch/x86/include/asm/pgtable.h index 18afcd31e76c..9754d06ffe68 100644 --- a/arch/x86/include/asm/pgtable.h +++ b/arch/x86/include/asm/pgtable.h | |||
@@ -524,6 +524,9 @@ static inline unsigned long pages_to_mb(unsigned long npg) | |||
524 | return npg >> (20 - PAGE_SHIFT); | 524 | return npg >> (20 - PAGE_SHIFT); |
525 | } | 525 | } |
526 | 526 | ||
527 | #define io_remap_pfn_range(vma, vaddr, pfn, size, prot) \ | ||
528 | remap_pfn_range(vma, vaddr, pfn, size, prot) | ||
529 | |||
527 | #if PAGETABLE_LEVELS > 2 | 530 | #if PAGETABLE_LEVELS > 2 |
528 | static inline int pud_none(pud_t pud) | 531 | static inline int pud_none(pud_t pud) |
529 | { | 532 | { |
diff --git a/arch/x86/include/asm/pgtable_32.h b/arch/x86/include/asm/pgtable_32.h index 10c71abae075..1952bb762aac 100644 --- a/arch/x86/include/asm/pgtable_32.h +++ b/arch/x86/include/asm/pgtable_32.h | |||
@@ -133,7 +133,4 @@ do { \ | |||
133 | #define kern_addr_valid(kaddr) (0) | 133 | #define kern_addr_valid(kaddr) (0) |
134 | #endif | 134 | #endif |
135 | 135 | ||
136 | #define io_remap_pfn_range(vma, vaddr, pfn, size, prot) \ | ||
137 | remap_pfn_range(vma, vaddr, pfn, size, prot) | ||
138 | |||
139 | #endif /* _ASM_X86_PGTABLE_32_H */ | 136 | #endif /* _ASM_X86_PGTABLE_32_H */ |
diff --git a/arch/x86/include/asm/pgtable_64.h b/arch/x86/include/asm/pgtable_64.h index 3b92a4ca4030..100ac483a0ba 100644 --- a/arch/x86/include/asm/pgtable_64.h +++ b/arch/x86/include/asm/pgtable_64.h | |||
@@ -205,9 +205,6 @@ extern int direct_gbpages; | |||
205 | extern int kern_addr_valid(unsigned long addr); | 205 | extern int kern_addr_valid(unsigned long addr); |
206 | extern void cleanup_highmap(void); | 206 | extern void cleanup_highmap(void); |
207 | 207 | ||
208 | #define io_remap_pfn_range(vma, vaddr, pfn, size, prot) \ | ||
209 | remap_pfn_range(vma, vaddr, pfn, size, prot) | ||
210 | |||
211 | #define HAVE_ARCH_UNMAPPED_AREA | 208 | #define HAVE_ARCH_UNMAPPED_AREA |
212 | #define HAVE_ARCH_UNMAPPED_AREA_TOPDOWN | 209 | #define HAVE_ARCH_UNMAPPED_AREA_TOPDOWN |
213 | 210 | ||