diff options
author | Zachary Amsden <zach@vmware.com> | 2007-05-02 13:27:19 -0400 |
---|---|---|
committer | Andi Kleen <andi@basil.nowhere.org> | 2007-05-02 13:27:19 -0400 |
commit | 9e5e3162b2d5e4466187ecd63c9eec2de33cb7bc (patch) | |
tree | e0d9231574833f17b509bc2ca1971af90f657eb2 /include/asm-i386/pgtable-2level.h | |
parent | 142dd975911fdd82b1b6f6617cd20ac90a8ccf00 (diff) |
[PATCH] i386: pte simplify ops
Add comment and condense code to make use of native_local_ptep_get_and_clear
function. Also, it turns out the 2-level and 3-level paging definitions were
identical, so move the common definition into pgtable.h
Signed-off-by: Zachary Amsden <zach@vmware.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Andi Kleen <ak@suse.de>
Diffstat (limited to 'include/asm-i386/pgtable-2level.h')
-rw-r--r-- | include/asm-i386/pgtable-2level.h | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/include/asm-i386/pgtable-2level.h b/include/asm-i386/pgtable-2level.h index 3daab67cd366..a50fd1773de8 100644 --- a/include/asm-i386/pgtable-2level.h +++ b/include/asm-i386/pgtable-2level.h | |||
@@ -41,16 +41,6 @@ static inline void native_pte_clear(struct mm_struct *mm, unsigned long addr, pt | |||
41 | *xp = __pte(0); | 41 | *xp = __pte(0); |
42 | } | 42 | } |
43 | 43 | ||
44 | /* local pte updates need not use xchg for locking */ | ||
45 | static inline pte_t native_local_ptep_get_and_clear(pte_t *ptep) | ||
46 | { | ||
47 | pte_t res; | ||
48 | |||
49 | res = *ptep; | ||
50 | native_pte_clear(NULL, 0, ptep); | ||
51 | return res; | ||
52 | } | ||
53 | |||
54 | #ifdef CONFIG_SMP | 44 | #ifdef CONFIG_SMP |
55 | static inline pte_t native_ptep_get_and_clear(pte_t *xp) | 45 | static inline pte_t native_ptep_get_and_clear(pte_t *xp) |
56 | { | 46 | { |