diff options
author | Frederic Weisbecker <[email protected]> | 2012-09-08 16:14:02 +0200 |
---|---|---|
committer | Frederic Weisbecker <[email protected]> | 2012-09-25 15:42:37 +0200 |
commit | a7e1a9e3af71b45ecae2dae35851f238117b317d (patch) | |
tree | 8b1d15d63779ba13d7884288c96a3510b7fde4b6 /tools/perf/util/scripting-engines/trace-event-python.c | |
parent | bf9fae9f5e4ca8dce4708812f9ad6281e61df109 (diff) |
vtime: Consolidate system/idle context detection
Move the code that finds out to which context we account the
cputime into generic layer.
Archs that consider the whole time spent in the idle task as idle
time (ia64, powerpc) can rely on the generic vtime_account()
and implement vtime_account_system() and vtime_account_idle(),
letting the generic code to decide when to call which API.
Archs that have their own meaning of idle time, such as s390
that only considers the time spent in CPU low power mode as idle
time, can just override vtime_account().
Signed-off-by: Frederic Weisbecker <[email protected]>
Cc: Tony Luck <[email protected]>
Cc: Fenghua Yu <[email protected]>
Cc: Benjamin Herrenschmidt <[email protected]>
Cc: Paul Mackerras <[email protected]>
Cc: Martin Schwidefsky <[email protected]>
Cc: Heiko Carstens <[email protected]>
Cc: Ingo Molnar <[email protected]>
Cc: Thomas Gleixner <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions