Files
android_kernel_xiaomi_sm8450/arch/powerpc/kernel
Peter Zijlstra a4eaf7f146 perf: Rework the PMU methods
Replace pmu::{enable,disable,start,stop,unthrottle} with
pmu::{add,del,start,stop}, all of which take a flags argument.

The new interface extends the capability to stop a counter while
keeping it scheduled on the PMU. We replace the throttled state with
the generic stopped state.

This also allows us to efficiently stop/start counters over certain
code paths (like IRQ handlers).

It also allows scheduling a counter without it starting, allowing for
a generic frozen state (useful for rotating stopped counters).

The stopped state is implemented in two different ways, depending on
how the architecture implemented the throttled state:

 1) We disable the counter:
    a) the pmu has per-counter enable bits, we flip that
    b) we program a NOP event, preserving the counter state

 2) We store the counter state and ignore all read/overflow events

Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: paulus <paulus@samba.org>
Cc: stephane eranian <eranian@googlemail.com>
Cc: Robert Richter <robert.richter@amd.com>
Cc: Will Deacon <will.deacon@arm.com>
Cc: Paul Mundt <lethal@linux-sh.org>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Cyrill Gorcunov <gorcunov@gmail.com>
Cc: Lin Ming <ming.m.lin@intel.com>
Cc: Yanmin <yanmin_zhang@linux.intel.com>
Cc: Deng-Cheng Zhu <dengcheng.zhu@gmail.com>
Cc: David Miller <davem@davemloft.net>
Cc: Michael Cree <mcree@orcon.net.nz>
LKML-Reference: <new-submission>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
2010-09-09 20:46:30 +02:00
..
2007-05-11 05:38:25 -04:00
2010-07-14 17:14:00 +10:00
2010-08-04 10:26:03 +10:00
2010-07-14 17:14:00 +10:00
2010-03-05 03:04:08 -06:00
2010-05-05 09:11:10 -04:00
2010-05-17 12:18:52 +03:00
2010-07-24 09:58:22 -06:00
2010-08-04 10:26:03 +10:00
2010-09-09 20:46:30 +02:00
2010-08-24 15:26:30 +10:00
2009-07-12 12:22:34 -07:00
2010-08-04 10:26:03 +10:00
2010-07-19 10:56:54 +02:00
2010-03-12 15:52:32 -08:00
2007-10-11 14:36:47 +10:00
2010-07-14 17:14:00 +10:00