diff options
| author | Arjan van de Ven <[email protected]> | 2010-05-09 08:23:23 -0700 |
|---|---|---|
| committer | Ingo Molnar <[email protected]> | 2010-05-09 19:35:26 +0200 |
| commit | 8c7b09f43f4bf570654bcc458ce96819a932303c (patch) | |
| tree | 33eb6f860fa9a31ea63b67247890a6762439fde2 /tools/perf/util/scripting-engines/trace-event-python.c | |
| parent | 595aac488b546c7185be7e29c8ae165a588b2a9f (diff) | |
sched: Update the idle statistics in get_cpu_idle_time_us()
Right now, get_cpu_idle_time_us() only reports the idle
statistics upto the point the CPU entered last idle; not what is
valid right now.
This patch adds an update of the idle statistics to
get_cpu_idle_time_us(), so that calling this function always
returns statistics that are accurate at the point of the call.
This includes resetting the start of the idle time for
accounting purposes to avoid double accounting.
Signed-off-by: Arjan van de Ven <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Reviewed-by: Rik van Riel <[email protected]>
Acked-by: Peter Zijlstra <[email protected]>
Cc: [email protected]
LKML-Reference: <[email protected]>
Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions