Re: USB making time drift [was Re: dynamic-hz]

From: Pavel Machek
Date: Wed Dec 15 2004 - 20:40:08 EST


Hi!

> > How much drift do you see?
>
> huge drift, minutes per hour or similar.

Okay, for your amusement, here's the evil
"do-few-msec-interrupt-latency" program.

Andrea, could you verify that it causes clock to drift for you? I'll
leave it running here overnight, and will see what happens.

Pavel
void
main(void)
{
int i;
iopl(3);
while (1) {
asm volatile("cli");
for (i=0; i<20000000; i++)
asm volatile("");
asm volatile("sti");
sleep(1);
}
}


--
People were complaining that M$ turns users into beta-testers...
...jr ghea gurz vagb qrirybcref, naq gurl frrz gb yvxr vg gung jnl!
-
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/