• Peter Zijlstra's avatar
    perf: Rework and fix the arch CPU-hotplug hooks · 3f6da390
    Peter Zijlstra authored
    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: default avatarPeter 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: default avatarIngo Molnar <mingo@elte.hu>
    3f6da390
perf_event.c 37.3 KB