]> git.baikalelectronics.ru Git - kernel.git/commit
perf: Rework and fix the arch CPU-hotplug hooks
authorPeter Zijlstra <a.p.zijlstra@chello.nl>
Fri, 5 Mar 2010 12:01:18 +0000 (13:01 +0100)
committerIngo Molnar <mingo@elte.hu>
Wed, 10 Mar 2010 12:22:24 +0000 (13:22 +0100)
commita34c0306f76e44b8abb812ca1bf4e3e55bbc421a
tree3e01248974385999fb8e7f8d5daa53b46228f649
parentc3b047fbf81f60c3b571e47444e2313f31be2933
perf: Rework and fix the arch CPU-hotplug hooks

Remove the hw_perf_event_*() hotplug hooks in favour of per PMU hotplug
notifiers. This has the advantage of reducing the static weak interface
as well as exposing all hotplug actions to the PMU.

Use this to fix x86 hotplug usage where we did things in ONLINE which
should have been done in UP_PREPARE or STARTING.

Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Paul Mundt <lethal@linux-sh.org>
Cc: paulus@samba.org
Cc: eranian@google.com
Cc: robert.richter@amd.com
Cc: fweisbec@gmail.com
Cc: Arnaldo Carvalho de Melo <acme@infradead.org>
LKML-Reference: <20100305154128.736225361@chello.nl>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/powerpc/kernel/perf_event.c
arch/sh/kernel/perf_event.c
arch/x86/kernel/cpu/perf_event.c
arch/x86/kernel/cpu/perf_event_amd.c
arch/x86/kernel/cpu/perf_event_intel.c
include/linux/perf_event.h
kernel/perf_event.c