Re: [patch 10/15] add xtime_shift and ntp_error_shift to structtimekeeper

From: Thomas Gleixner
Date: Sat Aug 15 2009 - 05:05:19 EST


On Fri, 14 Aug 2009, Martin Schwidefsky wrote:
> timekeeper.xtime_nsec += timekeeper.xtime_interval;
> - if (timekeeper.xtime_nsec >= (u64)NSEC_PER_SEC << clock->shift) {
> - timekeeper.xtime_nsec -= (u64)NSEC_PER_SEC << clock->shift;
> + nsecs = (u64) NSEC_PER_SEC << timekeeper.shift;

Minor nit. I made this a separate u64 variable as nsecs is s64 and
while this signed/unsigned mismatch is probably not hurting in that
context it's still not pretty :)

Thanks,

tglx
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/