Re: [BUG,2.6.28,s390] Fails to boot in Hercules S/390 emulator

From: Thomas Gleixner
Date: Thu Mar 12 2009 - 03:50:59 EST


On Wed, 11 Mar 2009, john stultz wrote:
> Maybe a different way of expressing what we're calculating is the
> following:
>
> xtime.tv_nsec = (clock->xtime_nsec + (1<<clock->shift)) >> clock->shift
> clock->xtime_nsec = (1<<clock->shift)
> - (clock->xtime_nsec &((1<<clock->shift)-1)
>
> In other words: The rounded up portion - the masked remainder in
> xtime_nsec.
>
> Does that make sense?

Yes, now that my brain works again. I knew I was missing something.

You are definitely right: math _is_ hard :)

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/