]> 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)
commit78c7140e09eb8132b97bd793a5363a4552eeb31a
tree93b85c1cc80e6e4b572a3a31c6b033142799edee
parent5a060a6fc8191723a6be0d98fd68a9629b74ac23
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