powerpc/64s/kuap: Conditionally restore AMR in kuap_restore_amr asm
authorNicholas Piggin <npiggin@gmail.com>
Wed, 29 Apr 2020 06:56:54 +0000 (16:56 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 28 May 2020 13:24:37 +0000 (23:24 +1000)
commitd4539074b0e9c5fa6508e8c33aaf51abc8ff6e91
tree4f5914349c6615225839c54d5b37fff58f75a96d
parent579940bb451c2dd33396d2d56ce6ef5d92154b3b
powerpc/64s/kuap: Conditionally restore AMR in kuap_restore_amr asm

Similar to the C code change, make the AMR restore conditional on
whether the register has changed.

Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20200429065654.1677541-7-npiggin@gmail.com
arch/powerpc/include/asm/book3s/64/kup-radix.h
arch/powerpc/kernel/entry_64.S
arch/powerpc/kernel/exceptions-64s.S