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

2017-08-28 Thread Thomas Gleixner
On Mon, 28 Aug 2017, Prarit Bhargava wrote: > +static struct tk_fast tk_fast_mono cacheline_aligned = { > + .base = { > + (struct tk_read_base){ > + .clock = _clock, > + }, > + (struct tk_read_base){ > + .clock =

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

2017-08-28 Thread Thomas Gleixner
On Mon, 28 Aug 2017, Prarit Bhargava wrote: > +static struct tk_fast tk_fast_mono cacheline_aligned = { > + .base = { > + (struct tk_read_base){ > + .clock = _clock, > + }, > + (struct tk_read_base){ > + .clock =

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

2017-08-28 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

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

2017-08-28 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