lkml.org 
[lkml]   [2009]   [Sep]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH] update clocksource raw_time in timekeeping_suspend
From
Date
On Fri, 2009-09-11 at 11:35 +0800, ye janboe wrote:
> So CLOCK_MONOTONIC_RAW is not suitable for getting real hw time which
> includes sleep time.

Hmm.. This is sort of an odd request.

The clocksource hardware counters stop in during suspend, so any "real
hw time that includes sleep" is likely to be combined from different
sources (with slightly different drifts), so I'm not sure why
CLOCK_MONOTONIC_RAW would be preferred over CLOCK_MONOTONIC?


> Is there other timer suitable for this?

Maybe the CMOS / RTC? Would that suffice?

Could you maybe provide more details about why you need this? Maybe
better understanding your needs would help point to a solution.

thanks
-john




\
 
 \ /
  Last update: 2009-09-11 20:13    [W:0.065 / U:0.888 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site