powerpc/watchpoints: Don't track info persistently
authorBenjamin Gray <bgray@linux.ibm.com>
Tue, 1 Aug 2023 01:17:39 +0000 (11:17 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Wed, 16 Aug 2023 13:54:50 +0000 (23:54 +1000)
commit668a6ec6ed57f0248070c490aba75a9572e4b0a4
tree2fe7e475198e2f965d4c874ddf2359e60c2c6e3f
parent8f8f1cd67aa026c9dab8eb4e087e4a2d8fa9d5bc
powerpc/watchpoints: Don't track info persistently

info is cheap to retrieve, and is likely optimised by the compiler
anyway. On the other hand, propagating it across the functions makes it
possible to be inconsistent and adds needless complexity.

Remove it, and invoke counter_arch_bp() when we need to work with it.

As we don't persist it, we just use the local bp array to track whether
we are ignoring a breakpoint.

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