Re: [PATCH 1/3 v11] time: Make fast functions return 0 before timekeeping is initialized

2017-09-15 Thread Prarit Bhargava
On 09/05/2017 08:15 AM, Thomas Gleixner wrote: > On Tue, 5 Sep 2017, Prarit Bhargava wrote: >> +static struct tk_fast tk_fast_mono cacheline_aligned = { >> +.base = { >> +(struct tk_read_base){ >> +.clock = &dummy_clock, >> +}, >> +(

Re: [PATCH 1/3 v11] time: Make fast functions return 0 before timekeeping is initialized

2017-09-05 Thread Thomas Gleixner
On Tue, 5 Sep 2017, Prarit Bhargava wrote: > +static struct tk_fast tk_fast_mono cacheline_aligned = { > + .base = { > + (struct tk_read_base){ > + .clock = &dummy_clock, > + }, > + (struct tk_read_base){ > + .clock

[PATCH 1/3 v11] time: Make fast functions return 0 before timekeeping is initialized

2017-09-05 Thread Prarit Bhargava
printk timestamps will be extended to include mono and boot time by using the fast timekeeping functions ktime_get_mono|boot_fast_ns() functions. The functions can return garbage before timekeeping is initialized resulting in garbage timestamps. The fast time functions must return 0 before timekee