Skip to content

Commit 438e69b

Browse files
kvaneeshmpe
authored andcommitted
powerpc/mm/radix: Skip ptesync in pte update helpers
We do them at the start of tlb flush, and we are sure a pte update will be followed by a tlbflush. Hence we can skip the ptesync in pte update helpers. Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com> Tested-by: Michael Neuling <mikey@neuling.org> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
1 parent f4894b8 commit 438e69b

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

  • arch/powerpc/include/asm/book3s/64

‎arch/powerpc/include/asm/book3s/64/radix.h‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -144,13 +144,11 @@ static inline unsigned long radix__pte_update(struct mm_struct *mm,
144144
* new value of pte
145145
*/
146146
new_pte = (old_pte | set) & ~clr;
147-
asm volatile("ptesync" : : : "memory");
148147
radix__flush_tlb_pte_p9_dd1(old_pte, mm, addr);
149148
if (new_pte)
150149
__radix_pte_update(ptep, 0, new_pte);
151150
} else
152151
old_pte = __radix_pte_update(ptep, clr, set);
153-
asm volatile("ptesync" : : : "memory");
154152
if (!huge)
155153
assert_pte_locked(mm, addr);
156154

@@ -195,7 +193,6 @@ static inline void radix__ptep_set_access_flags(struct mm_struct *mm,
195193
unsigned long old_pte, new_pte;
196194

197195
old_pte = __radix_pte_update(ptep, ~0, 0);
198-
asm volatile("ptesync" : : : "memory");
199196
/*
200197
* new value of pte
201198
*/

0 commit comments

Comments
 (0)