lkml.org 
[lkml]   [2010]   [Mar]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 5/9] perf, x86: use new perfctr reservation functions in perf code
    Date
    Use reserve_perfctr()/release_perfctr() in perf code.

    Signed-off-by: Robert Richter <robert.richter@amd.com>
    ---
    arch/x86/kernel/cpu/perf_event.c | 6 +++---
    1 files changed, 3 insertions(+), 3 deletions(-)

    diff --git a/arch/x86/kernel/cpu/perf_event.c b/arch/x86/kernel/cpu/perf_event.c
    index 62a1a5e..16ae7b4 100644
    --- a/arch/x86/kernel/cpu/perf_event.c
    +++ b/arch/x86/kernel/cpu/perf_event.c
    @@ -244,7 +244,7 @@ static bool reserve_pmc_hardware(void)
    disable_lapic_nmi_watchdog();

    for (i = 0; i < x86_pmu.num_events; i++) {
    - if (!reserve_perfctr_nmi(x86_pmu.perfctr + i))
    + if (!reserve_perfctr(i))
    goto perfctr_fail;
    }

    @@ -252,7 +252,7 @@ static bool reserve_pmc_hardware(void)

    perfctr_fail:
    for (i--; i >= 0; i--)
    - release_perfctr_nmi(x86_pmu.perfctr + i);
    + release_perfctr(i);

    if (nmi_watchdog == NMI_LOCAL_APIC)
    enable_lapic_nmi_watchdog();
    @@ -265,7 +265,7 @@ static void release_pmc_hardware(void)
    int i;

    for (i = 0; i < x86_pmu.num_events; i++)
    - release_perfctr_nmi(x86_pmu.perfctr + i);
    + release_perfctr(i);

    if (nmi_watchdog == NMI_LOCAL_APIC)
    enable_lapic_nmi_watchdog();
    --
    1.7.0



    \
     
     \ /
      Last update: 2010-03-04 17:55    [W:0.025 / U:0.604 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site