powerpc/watchpoints: Explain thread_change_pc() more
authorBenjamin Gray <bgray@linux.ibm.com>
Tue, 1 Aug 2023 01:17:38 +0000 (11:17 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Wed, 16 Aug 2023 13:54:50 +0000 (23:54 +1000)
commit8f8f1cd67aa026c9dab8eb4e087e4a2d8fa9d5bc
treee8ae25bfe8ca3ce1bacab5cd24de6bf375349f5d
parent8df99066940b6c82a0851f13adf653827dc524f7
powerpc/watchpoints: Explain thread_change_pc() more

The behaviour of the thread_change_pc() function is a bit cryptic
without being more familiar with how the watchpoint logic handles
perf's after-execute semantics.

Expand the comment to explain why we can re-insert the breakpoint and
unset the perf_single_step flag.

Signed-off-by: Benjamin Gray <bgray@linux.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://msgid.link/20230801011744.153973-2-bgray@linux.ibm.com
arch/powerpc/kernel/hw_breakpoint.c