hw_breakpoint: Introduce cpumask_of_bp()
authorOleg Nesterov <oleg@redhat.com>
Thu, 20 Jun 2013 15:50:15 +0000 (17:50 +0200)
committerIngo Molnar <mingo@kernel.org>
Thu, 20 Jun 2013 15:58:56 +0000 (17:58 +0200)
commit1c10adbb929936316f71df089ace699fce037e24
tree31cb135dfa9f016724fe97e096153abe507ea073
parent7ab71f3244e9f970c29566c5a67e13d1fa38c387
hw_breakpoint: Introduce cpumask_of_bp()

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.

Reported-by: Vince Weaver <vincent.weaver@maine.edu>
Signed-off-by: Oleg Nesterov <oleg@redhat.com>
Acked-by: Frederic Weisbecker <fweisbec@gmail.com>
Link: http://lkml.kernel.org/r/20130620155015.GA6340@redhat.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
kernel/events/hw_breakpoint.c