aboutsummaryrefslogtreecommitdiffstats
path: root/include/asm-x86
diff options
context:
space:
mode:
authorJeremy Fitzhardinge <jeremy@goop.org>2008-01-30 07:34:11 -0500
committerIngo Molnar <mingo@elte.hu>2008-01-30 07:34:11 -0500
commite3ed910db221768f8fd6192b13373e17d61bcdf0 (patch)
tree67a5eed4709a4b1b38e952af5bfc0340f78703af /include/asm-x86
parentfa28ba21cec24d3fa1279bcae7e5d5ff6224635a (diff)
x86: use the same pgd_list for PAE and 64-bit
Use a standard list threaded through page->lru for maintaining the pgd list on PAE. This is the same as 64-bit, and seems saner than using a non-standard list via page->index. Signed-off-by: Jeremy Fitzhardinge <jeremy@xensource.com> Signed-off-by: Ingo Molnar <mingo@elte.hu> Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'include/asm-x86')
-rw-r--r--include/asm-x86/pgtable.h2
-rw-r--r--include/asm-x86/pgtable_32.h2
-rw-r--r--include/asm-x86/pgtable_64.h3
3 files changed, 2 insertions, 5 deletions
diff --git a/include/asm-x86/pgtable.h b/include/asm-x86/pgtable.h
index 269e7e29ea8e..cd2524f07452 100644
--- a/include/asm-x86/pgtable.h
+++ b/include/asm-x86/pgtable.h
@@ -131,6 +131,8 @@ extern pteval_t __PAGE_KERNEL, __PAGE_KERNEL_EXEC;
131extern unsigned long empty_zero_page[PAGE_SIZE/sizeof(unsigned long)]; 131extern unsigned long empty_zero_page[PAGE_SIZE/sizeof(unsigned long)];
132#define ZERO_PAGE(vaddr) (virt_to_page(empty_zero_page)) 132#define ZERO_PAGE(vaddr) (virt_to_page(empty_zero_page))
133 133
134extern spinlock_t pgd_lock;
135extern struct list_head pgd_list;
134 136
135/* 137/*
136 * The following only work if pte_present() is true. 138 * The following only work if pte_present() is true.
diff --git a/include/asm-x86/pgtable_32.h b/include/asm-x86/pgtable_32.h
index 7b61cb5989b0..21e70fbf1dae 100644
--- a/include/asm-x86/pgtable_32.h
+++ b/include/asm-x86/pgtable_32.h
@@ -27,8 +27,6 @@ struct vm_area_struct;
27 27
28extern pgd_t swapper_pg_dir[1024]; 28extern pgd_t swapper_pg_dir[1024];
29extern struct kmem_cache *pmd_cache; 29extern struct kmem_cache *pmd_cache;
30extern spinlock_t pgd_lock;
31extern struct page *pgd_list;
32void check_pgt_cache(void); 30void check_pgt_cache(void);
33 31
34static inline void pgtable_cache_init(void) {} 32static inline void pgtable_cache_init(void) {}
diff --git a/include/asm-x86/pgtable_64.h b/include/asm-x86/pgtable_64.h
index ce1dbab75e39..6e615a103c2f 100644
--- a/include/asm-x86/pgtable_64.h
+++ b/include/asm-x86/pgtable_64.h
@@ -240,9 +240,6 @@ static inline unsigned long pmd_bad(pmd_t pmd)
240#define __pte_to_swp_entry(pte) ((swp_entry_t) { pte_val(pte) }) 240#define __pte_to_swp_entry(pte) ((swp_entry_t) { pte_val(pte) })
241#define __swp_entry_to_pte(x) ((pte_t) { .pte = (x).val }) 241#define __swp_entry_to_pte(x) ((pte_t) { .pte = (x).val })
242 242
243extern spinlock_t pgd_lock;
244extern struct list_head pgd_list;
245
246extern int kern_addr_valid(unsigned long addr); 243extern int kern_addr_valid(unsigned long addr);
247 244
248#define io_remap_pfn_range(vma, vaddr, pfn, size, prot) \ 245#define io_remap_pfn_range(vma, vaddr, pfn, size, prot) \