Re: [PATCH 3/3] hw_breakpoint: Introduce cpumask_of_bp()

2013-06-15 Thread Frederic Weisbecker
On Sat, Jun 01, 2013 at 09:46:26PM +0200, Oleg Nesterov wrote: > Add the trivial helper which simply returns cpumask_of() or > cpu_possible_mask depending on bp->cpu. > > Change fetch_bp_busy_slots() and toggle_bp_slot() to always do > for_each_cpu(cpumask_of_bp) to simplify the code and avoid

Re: [PATCH 3/3] hw_breakpoint: Introduce cpumask_of_bp()

2013-06-15 Thread Frederic Weisbecker
On Sat, Jun 01, 2013 at 09:46:26PM +0200, Oleg Nesterov wrote: Add the trivial helper which simply returns cpumask_of() or cpu_possible_mask depending on bp-cpu. Change fetch_bp_busy_slots() and toggle_bp_slot() to always do for_each_cpu(cpumask_of_bp) to simplify the code and avoid the

[PATCH 3/3] hw_breakpoint: Introduce cpumask_of_bp()

2013-06-01 Thread Oleg Nesterov
Add the trivial helper which simply returns cpumask_of() or cpu_possible_mask depending on bp->cpu. Change fetch_bp_busy_slots() and toggle_bp_slot() to always do for_each_cpu(cpumask_of_bp) to simplify the code and avoid the code duplication. Signed-off-by: Oleg Nesterov ---

[PATCH 3/3] hw_breakpoint: Introduce cpumask_of_bp()

2013-06-01 Thread Oleg Nesterov
Add the trivial helper which simply returns cpumask_of() or cpu_possible_mask depending on bp-cpu. Change fetch_bp_busy_slots() and toggle_bp_slot() to always do for_each_cpu(cpumask_of_bp) to simplify the code and avoid the code duplication. Signed-off-by: Oleg Nesterov o...@redhat.com ---