diff options
author | Nicholas Piggin <npiggin@gmail.com> | 2018-10-03 00:27:58 +1000 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2018-10-14 18:04:09 +1100 |
commit | 94ee42727ce06522787a28476465becace1c238b (patch) | |
tree | d9f49b2af381e7b63b31f1938d96f53db8fac36c /arch/powerpc/mm/slice.c | |
parent | 5434ae74629af58ad0fc27143a9ea435f7734410 (diff) | |
download | linux-stable-94ee42727ce06522787a28476465becace1c238b.tar.gz linux-stable-94ee42727ce06522787a28476465becace1c238b.tar.bz2 linux-stable-94ee42727ce06522787a28476465becace1c238b.zip |
powerpc/64s/hash: Simplify slb_flush_and_rebolt()
slb_flush_and_rebolt() is misleading, it is called in virtual mode, so
it can not possibly change the stack, so it should not be touching the
shadow area. And since vmalloc is no longer bolted, it should not
change any bolted mappings at all.
Change the name to slb_flush_and_restore_bolted(), and have it just
load the kernel stack from what's currently in the shadow SLB area.
Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'arch/powerpc/mm/slice.c')
-rw-r--r-- | arch/powerpc/mm/slice.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/mm/slice.c b/arch/powerpc/mm/slice.c index 546dd07c8083..50ba3d0456a5 100644 --- a/arch/powerpc/mm/slice.c +++ b/arch/powerpc/mm/slice.c @@ -219,7 +219,7 @@ static void slice_flush_segments(void *parm) copy_mm_to_paca(current->active_mm); local_irq_save(flags); - slb_flush_and_rebolt(); + slb_flush_and_restore_bolted(); local_irq_restore(flags); #endif } |