parisc: Remove PTE load and fault check from L2_ptep macro
authorJohn David Anglin <dave.anglin@bell.net>
Sat, 29 Sep 2018 20:34:59 +0000 (16:34 -0400)
committerHelge Deller <deller@gmx.de>
Wed, 17 Oct 2018 06:18:00 +0000 (08:18 +0200)
commit32a7901f6d1d518ce25290c78553428110399212
treec8aa6f422dbdc37fb4fadf23a118248e8af77636
parenta886c9791aed64d73f8c0038cc1506741ba216fa
parisc: Remove PTE load and fault check from L2_ptep macro

This change removes the PTE load and present check from the L2_ptep
macro.  The load and check for kernel pages is now done in the tlb_lock
macro.  This avoids a double load and check for user pages.  The load
and check for user pages is now done inside the lock so the fault
handler can't be called while the entry is being updated.  This version
uses an ordered store to release the lock when the page table entry
isn't present.  It also corrects the check in the non SMP case.

Signed-off-by: John David Anglin <dave.anglin@bell.net>
Signed-off-by: Helge Deller <deller@gmx.de>
arch/parisc/kernel/entry.S