lkml.org 
[lkml]   [2017]   [Nov]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Date
SubjectRe: [GIT pull] printk updates for 4.15
On Tue, Nov 14, 2017 at 12:21 PM, Thomas Gleixner <tglx@linutronix.de> 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.

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?

One is "let's improve the clock".

The other is "let's do something crazy and idiotic".

Linus

\
 
 \ /
  Last update: 2017-11-14 22:07    [W:0.067 / U:0.124 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site