diff options
| author | Amit Pundir <amit.pundir@linaro.org> | 2015-04-14 02:38:20 +0530 |
|---|---|---|
| committer | Mister Oyster <oysterized@gmail.com> | 2017-04-13 12:35:16 +0200 |
| commit | bbff9a48ad193a5bddaa62cc3b79945225adadd1 (patch) | |
| tree | 14d8e3e5aa2450b87b7a3c93bbe66e432caf3847 /scripts/checkincludes.pl | |
| parent | fb67038c08344d6c7c03fe2ef78c2ee6d91b21bf (diff) | |
power: wakeup_reason: fix suspend time reporting
Suspend time reporting Change-Id: I2cb9a9408a5fd12166aaec11b935a0fd6a408c63
(Power: Report suspend times from last_suspend_time), is broken on 3.16+
kernels because get_xtime_and_monotonic_and_sleep_offset() hrtimer helper
routine is removed from kernel timekeeping.
The replacement helper routines ktime_get_update_offsets_{tick,now}()
are private to core kernel timekeeping so we can't use them, hence using
ktime_get() and ktime_get_boottime() instead and sampling the time twice.
Idea is to use Monotonic boottime offset to calculate total time spent
in last suspend state and CLOCK_MONOTONIC to calculate time spent in
last suspend-resume process.
Signed-off-by: Amit Pundir <amit.pundir@linaro.org>
Diffstat (limited to 'scripts/checkincludes.pl')
0 files changed, 0 insertions, 0 deletions
