]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/64s/hash: Simplify slb_flush_and_rebolt()
authorNicholas Piggin <npiggin@gmail.com>
Tue, 2 Oct 2018 14:27:58 +0000 (00:27 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Sun, 14 Oct 2018 07:04:09 +0000 (18:04 +1100)
commit3c2fdfcecae1fdce6530332f65b85b2b3b99c6eb
treed9f49b2af381e7b63b31f1938d96f53db8fac36c
parenta9f0725a829ed11dfd77a312cc8d18044733a5fd
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>
arch/powerpc/include/asm/book3s/64/mmu-hash.h
arch/powerpc/kernel/swsusp_asm64.S
arch/powerpc/mm/hash_utils_64.c
arch/powerpc/mm/slb.c
arch/powerpc/mm/slice.c