]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/mm: Export flush_all_mm()
authorFrederic Barrat <fbarrat@linux.vnet.ibm.com>
Sun, 3 Sep 2017 18:15:12 +0000 (20:15 +0200)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 28 Sep 2017 06:28:22 +0000 (16:28 +1000)
commit6110236b9bbd177debc045c5fc29224444686ece
tree48efa00936f0a894fa55c51dbdf9716928dc3b08
parent5080332c2c893118dbc18755f35c8b0131cf0fc4
powerpc/mm: Export flush_all_mm()

With the optimizations introduced by commit a46cc7a90fd8
("powerpc/mm/radix: Improve TLB/PWC flushes"), flush_tlb_mm() no
longer flushes the page walk cache (PWC) with radix. This patch
introduces flush_all_mm(), which flushes everything, TLB and PWC, for
a given mm.

Signed-off-by: Frederic Barrat <fbarrat@linux.vnet.ibm.com>
Reviewed-By: Alistair Popple <alistair@popple.id.au>
[mpe: Add a WARN_ON_ONCE() in the empty hash routines]
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/include/asm/book3s/64/tlbflush-hash.h
arch/powerpc/include/asm/book3s/64/tlbflush-radix.h
arch/powerpc/include/asm/book3s/64/tlbflush.h
arch/powerpc/mm/tlb-radix.c