diff options
author | Andrea Arcangeli <aarcange@redhat.com> | 2011-01-13 18:46:35 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2011-01-13 20:32:39 -0500 |
commit | 0a47de52db04c5eb346e99a8d038e693689bedca (patch) | |
tree | e1082844deb4406e59e724b0fd3ccbf6240386c1 /arch | |
parent | 8dd60a3a65c1b057bf0031d28436d3447a3c545b (diff) |
thp: add native_set_pmd_at
Used by paravirt and not paravirt set_pmd_at.
Signed-off-by: Andrea Arcangeli <aarcange@redhat.com>
Acked-by: Rik van Riel <riel@redhat.com>
Acked-by: Mel Gorman <mel@csn.ul.ie>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/x86/include/asm/pgtable.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/x86/include/asm/pgtable.h b/arch/x86/include/asm/pgtable.h index ada823a13c7c..6d3dde327332 100644 --- a/arch/x86/include/asm/pgtable.h +++ b/arch/x86/include/asm/pgtable.h | |||
@@ -530,6 +530,12 @@ static inline void native_set_pte_at(struct mm_struct *mm, unsigned long addr, | |||
530 | native_set_pte(ptep, pte); | 530 | native_set_pte(ptep, pte); |
531 | } | 531 | } |
532 | 532 | ||
533 | static inline void native_set_pmd_at(struct mm_struct *mm, unsigned long addr, | ||
534 | pmd_t *pmdp , pmd_t pmd) | ||
535 | { | ||
536 | native_set_pmd(pmdp, pmd); | ||
537 | } | ||
538 | |||
533 | #ifndef CONFIG_PARAVIRT | 539 | #ifndef CONFIG_PARAVIRT |
534 | /* | 540 | /* |
535 | * Rules for using pte_update - it must be called after any PTE update which | 541 | * Rules for using pte_update - it must be called after any PTE update which |