powerpc/kprobes: Have optimized_callback() use preempt_enable()
authorNaveen N. Rao <naveen.n.rao@linux.vnet.ibm.com>
Thu, 20 Oct 2022 17:28:58 +0000 (22:58 +0530)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 24 Nov 2022 12:31:49 +0000 (23:31 +1100)
commit04ec5d5782fb346c291a05a2efe59483d8ada4c4
tree1d1d37f50d38e537ea61e93ac1f4ec8a5352985c
parent2fa9482334b0593b7edc371a13c0cca81daaa89e
powerpc/kprobes: Have optimized_callback() use preempt_enable()

Similar to x86 commit 2e62024c265aa6 ("kprobes/x86: Use preempt_enable()
in optimized_callback()"), change powerpc optprobes to use
preempt_enable() rather than preempt_enable_no_resched() since powerpc
also removed irq disabling for optprobes in commit f72180cc93a2c6
("powerpc/kprobes: Do not disable interrupts for optprobes and
kprobes_on_ftrace").

Reported-by: Nicholas Piggin <npiggin@gmail.com>
Signed-off-by: Naveen N. Rao <naveen.n.rao@linux.vnet.ibm.com>
Reviewed-by: Nicholas Piggin <npiggin@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/1885bab182626c33d9bf6421f430abf924c521a5.1666262278.git.naveen.n.rao@linux.vnet.ibm.com
arch/powerpc/kernel/optprobes.c