[PATCH 1/3] xen/arm: introduce xen_read_wallclock

Stefano Stabellini sstabellini at kernel.org
Fri Nov 6 06:34:28 PST 2015


On Fri, 6 Nov 2015, Mark Rutland wrote:
> > +	delta = arch_timer_read_counter();	/* time since system boot */
> > +	delta += now.tv_sec * (u64)NSEC_PER_SEC + now.tv_nsec;
> 
> The arch counter value is not a number of nanoseconds (unless CNTFRQ
> reads as 1000000), so this doesn't look right; the units don't match.

That was a bad mistake. Thanks for catching it!



More information about the linux-arm-kernel mailing list