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

Thomas Gleixner
2009-03-12T07:51:00Z

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