diff options
author | Mukesh Ojha <[email protected]> | 2018-07-17 12:01:29 +0530 |
---|---|---|
committer | John Stultz <[email protected]> | 2018-07-19 17:08:51 -0700 |
commit | f473e5f467f6049370575390b08dc42131315d60 (patch) | |
tree | 5872330f85209273d677eb28891048f72215e350 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | 985e695074d35768cb04d65f58bca45f7bf1a99d (diff) |
time: Fix extra sleeptime injection when suspend fails
Currently, there exists a corner case assuming when there is
only one clocksource e.g RTC, and system failed to go to
suspend mode. While resume rtc_resume() injects the sleeptime
as timekeeping_rtc_skipresume() returned 'false' (default value
of sleeptime_injected) due to which we can see mismatch in
timestamps.
This issue can also come in a system where more than one
clocksource are present and very first suspend fails.
Success case:
------------
{sleeptime_injected=false}
rtc_suspend() => timekeeping_suspend() => timekeeping_resume() =>
(sleeptime injected)
rtc_resume()
Failure case:
------------
{failure in sleep path} {sleeptime_injected=false}
rtc_suspend() => rtc_resume()
{sleeptime injected again which was not required as the suspend failed}
Fix this by handling the boolean logic properly.
Cc: Thomas Gleixner <[email protected]>
Cc: Ingo Molnar <[email protected]>
Cc: Miroslav Lichvar <[email protected]>
Cc: Richard Cochran <[email protected]>
Cc: Prarit Bhargava <[email protected]>
Cc: Stephen Boyd <[email protected]>
Originally-by: Thomas Gleixner <[email protected]>
Signed-off-by: Mukesh Ojha <[email protected]>
Signed-off-by: John Stultz <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions