Skip to content

Commit

Permalink
x86: move 2 and 3 level asm-generic defs into page-defs
Browse files Browse the repository at this point in the history
Signed-off-by: Jeremy Fitzhardinge <jeremy@goop.org>
  • Loading branch information
Jeremy Fitzhardinge authored and Jeremy Fitzhardinge committed Feb 11, 2009
1 parent 51c78eb commit 1dfc07a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 0 additions & 4 deletions arch/x86/include/asm/page.h
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,6 @@ static inline pudval_t native_pud_val(pud_t pud)
return pud.pud;
}
#else /* PAGETABLE_LEVELS == 3 */
#include <asm-generic/pgtable-nopud.h>

static inline pudval_t native_pud_val(pud_t pud)
{
return native_pgd_val(pud.pgd);
Expand All @@ -82,8 +80,6 @@ static inline pmdval_t native_pmd_val(pmd_t pmd)
}

#else /* PAGETABLE_LEVELS == 2 */
#include <asm-generic/pgtable-nopmd.h>

static inline pmdval_t native_pmd_val(pmd_t pmd)
{
return native_pgd_val(pmd.pud.pgd);
Expand Down
4 changes: 4 additions & 0 deletions arch/x86/include/asm/page_types.h
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,14 @@ typedef struct { pgprotval_t pgprot; } pgprot_t;

#if PAGETABLE_LEVELS > 3
typedef struct { pudval_t pud; } pud_t;
#else
#include <asm-generic/pgtable-nopud.h>
#endif

#if PAGETABLE_LEVELS > 2
typedef struct { pmdval_t pmd; } pmd_t;
#else
#include <asm-generic/pgtable-nopmd.h>
#endif

typedef struct page *pgtable_t;
Expand Down

0 comments on commit 1dfc07a

Please sign in to comment.