arm64: provide pmdp_establish() helper
authorCatalin Marinas <[email protected]>
Thu, 1 Feb 2018 00:17:55 +0000 (16:17 -0800)
committerLinus Torvalds <[email protected]>
Thu, 1 Feb 2018 01:18:37 +0000 (17:18 -0800)
commit1d78a62cb3bb2bd95d00149daaa144f1fe0a77df
tree711d0f07de627b1aa958cd41611a3c5ac6742ee4
parentef298cc567684e33d0c9f490e71884851b646d41
arm64: provide pmdp_establish() helper

We need an atomic way to setup pmd page table entry, avoiding races with
CPU setting dirty/accessed bits.  This is required to implement
pmdp_invalidate() that doesn't lose these bits.

Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Catalin Marinas <[email protected]>
Signed-off-by: Kirill A. Shutemov <[email protected]>
Cc: Vlastimil Babka <[email protected]>
Cc: Andrea Arcangeli <[email protected]>
Cc: Michal Hocko <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
arch/arm64/include/asm/pgtable.h