perf/hwbp: Simplify the perf-hwbp code, fix documentation

commit f67b15037a7a50c57f72e69a6d59941ad90a0f0f upstream.

Annoyingly, modify_user_hw_breakpoint() unnecessarily complicates the
modification of a breakpoint - simplify it and remove the pointless
local variables.

Also update the stale Docbook while at it.

Signed-off-by: Linus Torvalds <>
Acked-by: Thomas Gleixner <>
Cc: <>
Cc: Alexander Shishkin <>
Cc: Andy Lutomirski <>
Cc: Arnaldo Carvalho de Melo <>
Cc: Frederic Weisbecker <>
Cc: Jiri Olsa <>
Cc: Peter Zijlstra <>
Cc: Stephane Eranian <>
Cc: Vince Weaver <>
Signed-off-by: Ingo Molnar <>
Signed-off-by: Greg Kroah-Hartman <>

(cherry picked from commit ca04476df8fd39c71818352db43090bd17dd1d58)

Signed-off-by: Aditya Kali <>

Change-Id: I77b5679e107125aa709f96d2f682110ebd11fc86
Reviewed-by: Guenter Roeck <>
Tested-by: Aditya Kali <>
Commit-Queue: Aditya Kali <>
1 file changed