• Peter Zijlstra's avatar
    perf_counter: Generic per counter interrupt throttle · a78ac325
    Peter Zijlstra authored
    Introduce a generic per counter interrupt throttle.
    
    This uses the perf_counter_overflow() quick disable to throttle a specific
    counter when its going too fast when a pmu->unthrottle() method is provided
    which can undo the quick disable.
    
    Power needs to implement both the quick disable and the unthrottle method.
    Signed-off-by: default avatarPeter Zijlstra <a.p.zijlstra@chello.nl>
    Cc: Paul Mackerras <paulus@samba.org>
    Cc: Corey Ashford <cjashfor@linux.vnet.ibm.com>
    Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
    Cc: John Kacur <jkacur@redhat.com>
    LKML-Reference: <20090525153931.703093461@chello.nl>
    Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
    a78ac325
sysctl.c 74 KB