From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756826AbdKNVJq (ORCPT ); Tue, 14 Nov 2017 16:09:46 -0500 Received: from Galois.linutronix.de ([146.0.238.70]:39123 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753871AbdKNVJj (ORCPT ); Tue, 14 Nov 2017 16:09:39 -0500 Date: Tue, 14 Nov 2017 22:09:34 +0100 (CET) From: Thomas Gleixner To: Linus Torvalds cc: Petr Mladek , LKML , Ingo Molnar , "H. Peter Anvin" , Peter Zijlstra , Andrew Morton , Mark Salyzyn , Prarit Bhargava , Sergey Senozhatsky , Steven Rostedt Subject: Re: [GIT pull] printk updates for 4.15 In-Reply-To: Message-ID: References: <20171114100336.uil744pxmbsawq63@pathway.suse.cz> User-Agent: Alpine 2.20 (DEB 67 2015-01-07) 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, 14 Nov 2017, Linus Torvalds wrote: > On Tue, Nov 14, 2017 at 12:21 PM, Thomas Gleixner wrote: > > > > First of all sched_clock() and CLOCK_MONOTONIC can drift apart frequency > > wise pretty bad. > > Yes. And I would actuall ynot object to just making the printk buffers > use CLOCK_MONOTONIC. > > The reason we avoided that was we didn't want to take the locks, though. I know, but today we can use the NMI safe accessor which avoids that. > sched_clock() is used not because it's the right clock, or > particularly good, but because it is fast and doesn't have locking > issues. > > But all of this is entirely separate from the "changing from one clock > that has small issues for good reasons to FOUR DIFFERENT CLOCKS THAT > THE USER CHOOSES RANDOMLY". > > See my objection? I understand that and I certainly was not trying to argue about that. Thanks, tglx