]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/64/kuap: Conditionally restore AMR in interrupt exit
authorNicholas Piggin <npiggin@gmail.com>
Wed, 29 Apr 2020 06:56:51 +0000 (16:56 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 28 May 2020 13:24:37 +0000 (23:24 +1000)
commit716d57f501cc2329ef1edfe3db0837a93ca5b2fd
tree93b85c1cc80e6e4b572a3a31c6b033142799edee
parent48ecf4f2594f22fa7cfd4cb2ee1dbd0856b2e40f
powerpc/64/kuap: Conditionally restore AMR in interrupt exit

The AMR update is made conditional on AMR actually changing, which
should be the less common case on most workloads (though kernel page
faults on uaccess could be frequent, this doesn't significantly slow
down that case).

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-4-npiggin@gmail.com
arch/powerpc/include/asm/book3s/64/kup-radix.h
arch/powerpc/kernel/syscall_64.c