]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/64s/radix: make ptep_get_and_clear_full non-atomic for the full case
authorNicholas Piggin <npiggin@gmail.com>
Fri, 1 Jun 2018 10:01:17 +0000 (20:01 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Sun, 3 Jun 2018 10:40:35 +0000 (20:40 +1000)
commit35f51b52c9b35bed633c82918f3e8dcd46255dc9
tree24093b018bdb06f5e9c29e5e1fdb0a96cd9150e7
parent48abe276632616c5958b683f26f460d1b9dc5eca
powerpc/64s/radix: make ptep_get_and_clear_full non-atomic for the full case

This matches other architectures, when we know there will be no
further accesses to the address (e.g., for teardown), page table
entries can be cleared non-atomically.

The comments about NMMU are bogus: all MMU notifiers (including NMMU)
are released at this point, with their TLBs flushed. An NMMU access at
this point would be a bug.

Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/include/asm/book3s/64/radix.h