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
This commit is contained in:
Nicholas Piggin 2020-04-29 16:56:54 +10:00 • committed by Michael Ellerman
commit d4539074b0
3 changed files with 13 additions and 9 deletions