Import changeset
[linux-flexiantxendom0-3.2.10.git] / include / asm-i386 / pgalloc-2level.h
1 #ifndef _I386_PGALLOC_2LEVEL_H
2 #define _I386_PGALLOC_2LEVEL_H
3
4 /*
5  * traditional i386 two-level paging, page table allocation routines:
6  */
7
8 extern __inline__ pmd_t *get_pmd_fast(void)
9 {
10         return (pmd_t *)0;
11 }
12
13 extern __inline__ void free_pmd_fast(pmd_t *pmd) { }
14 extern __inline__ void free_pmd_slow(pmd_t *pmd) { }
15
16 extern inline pmd_t * pmd_alloc(pgd_t *pgd, unsigned long address)
17 {
18         if (!pgd)
19                 BUG();
20         return (pmd_t *) pgd;
21 }
22
23 #endif /* _I386_PGALLOC_2LEVEL_H */