lkml.org 
[lkml]   [2016]   [Nov]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [RFC] timekeeping: Use cached readouts for monotonic and raw clocks in suspend
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

\
 
 \ /
  Last update: 2016-11-20 14:27    [W:0.043 / U:0.400 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site