powerpc/watchpoint: Get watchpoint count dynamically while disabling them
authorRavi Bangoria <ravi.bangoria@linux.ibm.com>
Thu, 14 May 2020 11:17:32 +0000 (16:47 +0530)
committerMichael Ellerman <mpe@ellerman.id.au>
Mon, 18 May 2020 14:11:04 +0000 (00:11 +1000)
commitc2919132734f29a7a33e1339bef8a67b11f322eb
treeb8ac2117f7cc5599d21db99f91973295a93e75d6
parent4a8a9379f2af4c9928529b3959bc2d8f7023c6bc
powerpc/watchpoint: Get watchpoint count dynamically while disabling them

Instead of disabling only one watchpoint, get num of available
watchpoints dynamically and disable all of them.

Signed-off-by: Ravi Bangoria <ravi.bangoria@linux.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Reviewed-by: Michael Neuling <mikey@neuling.org>
Link: https://lore.kernel.org/r/20200514111741.97993-8-ravi.bangoria@linux.ibm.com
arch/powerpc/include/asm/hw_breakpoint.h