hw_breakpoint: Introduce "struct bp_cpuinfo"
authorOleg Nesterov <oleg@redhat.com>
Thu, 20 Jun 2013 15:50:20 +0000 (17:50 +0200)
committerIngo Molnar <mingo@kernel.org>
Thu, 20 Jun 2013 15:58:57 +0000 (17:58 +0200)
commitbde96030f438b5eb6fb74f3bdd06d9f68bb3ba00
treeb7e0ab3591d7c43bcbb6f3e68660383eb7a7be5e
parente12cbc10cb27fcbe51b5f68e2015138dc451a2eb
hw_breakpoint: Introduce "struct bp_cpuinfo"

This patch simply moves all per-cpu variables into the new
single per-cpu "struct bp_cpuinfo".

To me this looks more logical and clean, but this can also
simplify the further potential changes. In particular, I do not
think this memory should be per-cpu, it is never used "locally".
After this change it is trivial to turn it into, say,
bootmem[nr_cpu_ids].

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/20130620155020.GA6350@redhat.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
kernel/events/hw_breakpoint.c