Re: [RFC] timekeeping: Use cached readouts for monotonic and raw clocks in suspend

From: Thomas Gleixner
Date: Sun Nov 20 2016 - 08:26:58 EST


On Sat, 19 Nov 2016, Joel Fernandes wrote:

> I am planning to add boot clock as a trace clock that can account suspend time
> during tracing, however ktime_get_with_offset throws a warning as the
> clocksource is attempted to be accessed in suspend.

ktime_get_with_offset() cannot be used as trace clock at all because it can
life lock in NMI context. That's why we have ktime_get_mono_fast().

Thanks,

tglx