From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752043AbcA0Jk1 (ORCPT ); Wed, 27 Jan 2016 04:40:27 -0500 Received: from www.linutronix.de ([62.245.132.108]:41979 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751179AbcA0JkY (ORCPT ); Wed, 27 Jan 2016 04:40:24 -0500 Date: Wed, 27 Jan 2016 10:39:17 +0100 (CET) From: Thomas Gleixner To: Prarit Bhargava cc: linux-kernel@vger.kernel.org, John Stultz , Xunlei Pang , Baolin Wang , Andrew Morton , Greg Kroah-Hartman , Petr Mladek , Tejun Heo , Peter Hurley , Vasily Averin , Joe Perches Subject: Re: [PATCH] printk, allow different timestamps for printk.time In-Reply-To: <56A7DC85.4070603@redhat.com> Message-ID: References: <1453734744-28425-1-git-send-email-prarit@redhat.com> <56A7DC85.4070603@redhat.com> User-Agent: Alpine 2.11 (DEB 23 2013-08-11) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Linutronix-Spam-Score: -1.0 X-Linutronix-Spam-Level: - X-Linutronix-Spam-Status: No , -1.0 points, 5.0 required, ALL_TRUSTED=-1,SHORTCIRCUIT=-0.0001 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 26 Jan 2016, Prarit Bhargava wrote: > On 01/26/2016 03:34 PM, Thomas Gleixner wrote: > > Just for the record: The fast timekeeper stops across the inner workings of > > suspend/resume. But I think that doesn't matter much. > > I've had to debug s/r before using the sysfs interface. It is nice to have that > with a proper timestamp because a lot of the failures are in the driver suspend > and resume paths. I could easily change the options to: The timekeeper suspends/resumes in the syscore section, so the driver part is not affected. > 0 = disable > 1 = local clock (which along with 0 would maintain the current state of things) > 2 = monotonic > 3 = real Yes, that works. Btw, you need to document, that REAL can occasionally provide a wrong value on 32bit machines in case that a concurrent update of the realtime offset happens (settimeofday, leap seconds ...). That's because we access real_offset w/o the seqcount protection. It's probably hard to achieve, but it might happen. Thanks, tglx