powerpc/watchpoints: Simplify watchpoint reinsertion
authorBenjamin Gray <bgray@linux.ibm.com>
Tue, 1 Aug 2023 01:17:41 +0000 (11:17 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Wed, 16 Aug 2023 13:54:50 +0000 (23:54 +1000)
commit5a2d8b9c06712b52b2f0f2fc9a144242277fda74
tree0e4a79b367b9f6ab2ac3592d75da9dfc7bf5e8bb
parent1e60f3564bad09962646bf8c2af588ecf518d337
powerpc/watchpoints: Simplify watchpoint reinsertion

We only remove watchpoints when they have the perf_single_step flag set,
so we can reinsert them during the first iteration.

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