Messages in this thread | | | Date | Sat, 6 Sep 2008 13:55:07 -0700 (PDT) | From | Linus Torvalds <> | Subject | Re: [RFC patch 0/4] TSC calibration improvements |
| |
On Sat, 6 Sep 2008, Linus Torvalds wrote:
> > > On Sat, 6 Sep 2008, Thomas Gleixner wrote: > > > > Just checked. The -tip version still has the expect-- in the for() > > which might lead to stupid results depending on the gcc madness level. > > Umm. What? You're on some odd drugs.
Oh, you mean te "--expect" in the last pit_expect_msb(). Yeah, that one looks bogus, but I don't understand what it has to do with gcc at all.
"expect" is an unsigned char. There are absolutely _zero_ issues with overflow, underflow, random phases of the moon, madness levels or anything else. But yes, it does look like Ingo screwed up when adding that final check, since expect was already decremented at the end of the loop.
Ingo? Did you actually test it?
Linus
| |