Re: [PATCH 1/2] hw_breakpoint: Simplify*register_wide_hw_breakpoint()

From: Frederic Weisbecker
Date: Mon Jun 17 2013 - 20:12:25 EST


On Sun, Jun 02, 2013 at 09:50:11PM +0200, Oleg Nesterov wrote:
> 1. register_wide_hw_breakpoint() can use unregister_ if failure,
> no need to duplicate the code.
>
> 2. "struct perf_event **pevent" adds the unnecesary lever of
> indirection and complication, use per_cpu(*cpu_events, cpu).
>
> Signed-off-by: Oleg Nesterov <oleg@xxxxxxxxxx>

Acked-by: Frederic Weisbecker <fweisbec@xxxxxxxxx>
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/