path: root/arch/x86/include/asm
diff options
authorAneesh Kumar K.V <>2019-03-05 15:46:29 -0800
committerLinus Torvalds <>2019-03-05 21:07:18 -0800
commit04a8645304500be88b3345b65fef7efe58016166 (patch)
treeceb2ef0dd25791e44b236804f32ede418e89f79d /arch/x86/include/asm
parent0cbe3e26abe0cfe7effb67f620a77d46cce628b2 (diff)
mm: update ptep_modify_prot_commit to take old pte value as arg
Architectures like ppc64 require to do a conditional tlb flush based on the old and new value of pte. Enable that by passing old pte value as the arg. Link: Signed-off-by: Aneesh Kumar K.V <> Cc: Benjamin Herrenschmidt <> Cc: Heiko Carstens <> Cc: "H. Peter Anvin" <> Cc: Ingo Molnar <> Cc: Martin Schwidefsky <> Cc: Michael Ellerman <> Cc: Nicholas Piggin <> Cc: Paul Mackerras <> Cc: Thomas Gleixner <> Signed-off-by: Andrew Morton <> Signed-off-by: Linus Torvalds <>
Diffstat (limited to 'arch/x86/include/asm')
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/include/asm/paravirt.h b/arch/x86/include/asm/paravirt.h
index c5a7f18cce7e..c25c38a05c1c 100644
--- a/arch/x86/include/asm/paravirt.h
+++ b/arch/x86/include/asm/paravirt.h
@@ -433,7 +433,7 @@ static inline pte_t ptep_modify_prot_start(struct vm_area_struct *vma, unsigned
static inline void ptep_modify_prot_commit(struct vm_area_struct *vma, unsigned long addr,
- pte_t *ptep, pte_t pte)
+ pte_t *ptep, pte_t old_pte, pte_t pte)
if (sizeof(pteval_t) > sizeof(long))