Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 136783
b: refs/heads/master
c: 8de01da
h: refs/heads/master
i:
  136781: bea4698
  136779: e2b685b
  136775: 17e49e8
  136767: 50a866b
v: v3
  • Loading branch information
Jeremy Fitzhardinge committed Feb 6, 2009
1 parent 63cf42c commit 61901a9
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 9 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: a034a010f48bf49efe25098c16c16b9708ccbba5
refs/heads/master: 8de01da35e9dbbb4a9d1e9d5a37df98395dfa558
6 changes: 0 additions & 6 deletions trunk/arch/x86/include/asm/pgtable-3level.h
Original file line number Diff line number Diff line change
Expand Up @@ -145,12 +145,6 @@ static inline pte_t native_ptep_get_and_clear(pte_t *ptep)
#define native_ptep_get_and_clear(xp) native_local_ptep_get_and_clear(xp)
#endif

#define __HAVE_ARCH_PTE_SAME
static inline int pte_same(pte_t a, pte_t b)
{
return a.pte_low == b.pte_low && a.pte_high == b.pte_high;
}

/*
* Bits 0, 6 and 7 are taken in the low part of the pte,
* put the 32 bits of offset into the high part.
Expand Down
6 changes: 6 additions & 0 deletions trunk/arch/x86/include/asm/pgtable.h
Original file line number Diff line number Diff line change
Expand Up @@ -434,6 +434,12 @@ static inline int pte_none(pte_t pte)
return !pte.pte;
}

#define __HAVE_ARCH_PTE_SAME
static inline int pte_same(pte_t a, pte_t b)
{
return a.pte == b.pte;
}

#endif /* __ASSEMBLY__ */

#ifdef CONFIG_X86_32
Expand Down
2 changes: 0 additions & 2 deletions trunk/arch/x86/include/asm/pgtable_64.h
Original file line number Diff line number Diff line change
Expand Up @@ -134,8 +134,6 @@ static inline void native_pgd_clear(pgd_t *pgd)
native_set_pgd(pgd, native_make_pgd(0));
}

#define pte_same(a, b) ((a).pte == (b).pte)

#endif /* !__ASSEMBLY__ */

#define PMD_SIZE (_AC(1, UL) << PMD_SHIFT)
Expand Down

0 comments on commit 61901a9

Please sign in to comment.