• Paul Mackerras's avatar
    perf_counter: powerpc: use u64 for event codes internally · ef923214
    Paul Mackerras authored
    Although the perf_counter API allows 63-bit raw event codes,
    internally in the powerpc back-end we had been using 32-bit
    event codes.  This expands them to 64 bits so that we can add
    bits for specifying threshold start/stop events and instruction
    sampling modes later.
    
    This also corrects the return value of can_go_on_limited_pmc;
    we were returning an event code rather than just a 0/1 value in
    some circumstances. That didn't particularly matter while event
    codes were 32-bit, but now that event codes are 64-bit it
    might, so this fixes it.
    
    [ Impact: extend PowerPC perfcounter interfaces from u32 to u64 ]
    Signed-off-by: default avatarPaul Mackerras <paulus@samba.org>
    Acked-by: default avatarPeter Zijlstra <a.p.zijlstra@chello.nl>
    Cc: Corey Ashford <cjashfor@linux.vnet.ibm.com>
    Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
    LKML-Reference: <18955.36874.472452.353104@drongo.ozlabs.ibm.com>
    Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
    ef923214
ppc970-pmu.c 11.5 KB