Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755833AbZIKSKs (ORCPT ); Fri, 11 Sep 2009 14:10:48 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1754479AbZIKSKs (ORCPT ); Fri, 11 Sep 2009 14:10:48 -0400 Received: from e39.co.us.ibm.com ([32.97.110.160]:46971 "EHLO e39.co.us.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753387AbZIKSKr (ORCPT ); Fri, 11 Sep 2009 14:10:47 -0400 Subject: Re: [PATCH] update clocksource raw_time in timekeeping_suspend From: john stultz To: ye janboe Cc: Yong Zhang , zippel@linux-m68k.org, akpm@linux-foundation.org, mingo@elte.hu, linux-kernel In-Reply-To: References: <1252537622.9883.24.camel@localhost.localdomain> <2674af740909100231x582851dbv9b71bc2914be7030@mail.gmail.com> <1252620938.7319.3.camel@localhost.localdomain> Content-Type: text/plain Date: Fri, 11 Sep 2009 11:09:04 -0700 Message-Id: <1252692544.7913.11.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.24.3 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 933 Lines: 28 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@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/