OSDN Git Service

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)
commit579940bb451c2dd33396d2d56ce6ef5d92154b3b
tree93b85c1cc80e6e4b572a3a31c6b033142799edee
parentcb2b53cbffe3c388cd676b63f34e54ceb2643ae2
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