lkml.org 
[lkml]   [2010]   [Sep]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    From
    Subject[RFC][PATCH 01/19] perf: Fix CPU hotplug
    Since we have UP_PREPARE, we should also have UP_CANCELED.

    Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
    ---
    kernel/perf_event.c | 6 +++---
    1 file changed, 3 insertions(+), 3 deletions(-)

    Index: linux-2.6/kernel/perf_event.c
    ===================================================================
    --- linux-2.6.orig/kernel/perf_event.c
    +++ linux-2.6/kernel/perf_event.c
    @@ -5743,15 +5743,15 @@ perf_cpu_notify(struct notifier_block *s
    {
    unsigned int cpu = (long)hcpu;

    - switch (action) {
    + switch (action & ~CPU_TASKS_FROZEN) {

    case CPU_UP_PREPARE:
    - case CPU_UP_PREPARE_FROZEN:
    + case CPU_DOWN_FAILED:
    perf_event_init_cpu(cpu);
    break;

    + case CPU_UP_CANCELED:
    case CPU_DOWN_PREPARE:
    - case CPU_DOWN_PREPARE_FROZEN:
    perf_event_exit_cpu(cpu);
    break;




    \
     
     \ /
      Last update: 2010-09-07 18:59    [W:0.024 / U:0.032 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site