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

Mark Rutland mark.rutland at arm.com
Fri Nov 6 04:26:42 PST 2015


> +	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.

Thanks,
Mark.



More information about the linux-arm-kernel mailing list