Re: [PATCH] update clocksource raw_time in timekeeping_suspend

From: john stultz
Date: Fri Sep 11 2009 - 14:10:56 EST


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


--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/