lkml.org 
[lkml]   [2013]   [Dec]   [31]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Question about /proc/uptime
On 12/30/13 09:26, Martin Schwidefsky wrote:
> On Mon, 30 Dec 2013 16:11:10 +0100
> Oleg Nesterov <oleg@redhat.com> wrote:
>> Not sure I understand... except that timekeeping_resume() does
>> __timekeeping_inject_sleeptime().
>
> Hmm, you are right. The sleeptime is added to the monotonic boottime.
> So the first value of /proc/uptime is the wall-time since boot.
> And the second value is combined idle time over all cpus.

Is there an obvious way to query the non-suspend uptime from userspace?

Rob


\
 
 \ /
  Last update: 2014-01-01 06:01    [W:0.123 / U:1.028 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site