Re: MSEC_TO_JIFFIES is messed up...
From: Valdis . Kletnieks
Date: Wed May 12 2004 - 15:12:08 EST
On Wed, 12 May 2004 12:56:04 PDT, Davide Libenzi said:
> > If the kernel jiffie is anything other than exactly 1 msec, you're screwed.
> I believe they were talking about include/asm-i386/param.h
The problem is that even for the i386 family, there's no inherent reason why
the value of HZ is nailed to 1000 - it was changed from the default 100 in the
2.4 kernel for reasons that apply to most, but not all, machines, and there's
almost certainly people who are changing it back to 100 for good and valid
We're still seeing the occasional code that goes gonzo because it assumed that
the default value of HZ was 100 (there's been more than a few bugs concerning
HZ/USER_HZ) - it would be foolish to go back and re-hard-code the value and
start the cycle all over again....
Description: PGP signature