Re: HZ, preferably as small as possible

David Mosberger (davidm@napali.hpl.hp.com)
Mon, 15 Jul 2002 08:48:37 -0700


>>>>> On Mon, 15 Jul 2002 09:24:11 +0100, Russell King <rmk@arm.linux.org.uk> said:

Russell> On Mon, Jul 15, 2002 at 02:56:14AM -0400, Albert D. Cahalan
Russell> wrote:
>> Unfortunately, the hack must remain for another 4 years or so.
>> Maybe that's not so bad though. I prefer it over this:
>>
>> #ifdef __386__ #define HZ 100 #endif #ifdef __IA64__ #define HZ
>> 1024 #endif #ifdef __ARM__ #define HZ 128 // if they settle on
>> this

Russell> Ehh? It's been 100 on the majority of ARM. If it's
Russell> different in libproc, the libproc is broken.

libproc should be using AT_CLKTCK (as provided via sysconf(_SC_CLK_TCK))
at any rate.

--david
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/