diff options
| author | Peter Zijlstra <[email protected]> | 2017-04-21 12:43:59 +0200 |
|---|---|---|
| committer | Ingo Molnar <[email protected]> | 2017-05-15 10:15:20 +0200 |
| commit | f9fccdb9efef60dbcf84d493514b475c41aa866f (patch) | |
| tree | 3d5278febf2aa2f0d8d2e05977c59bcd97fce350 /tools/perf/scripts/python/failed-syscalls-by-pid.py | |
| parent | 3067a33d5fec856bb297d58e7f03411d060ccdee (diff) | |
cpuidle: Fix idle time tracking
Ville reported that on his Core2, which has TSC stop in idle, we would
always report very short idle durations. He tracked this down to
commit:
e93e59ce5b85 ("cpuidle: Replace ktime_get() with local_clock()")
which replaces ktime_get() with local_clock().
Add a sched_clock_idle_wakeup_event() call, which will re-sync the
clock with ktime_get_ns() when TSC is unstable and no-op otherwise.
Reported-by: Ville Syrjälä <[email protected]>
Tested-by: Ville Syrjälä <[email protected]>
Signed-off-by: Peter Zijlstra (Intel) <[email protected]>
Cc: Daniel Lezcano <[email protected]>
Cc: Linus Torvalds <[email protected]>
Cc: Mike Galbraith <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Rafael J . Wysocki <[email protected]>
Cc: Thomas Gleixner <[email protected]>
Cc: [email protected]
Fixes: e93e59ce5b85 ("cpuidle: Replace ktime_get() with local_clock()")
Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/failed-syscalls-by-pid.py')
0 files changed, 0 insertions, 0 deletions