Re: [PATCH] ia64: change usermode HZ to 250

From: Jes Sorensen
Date: Thu Jun 29 2006 - 05:36:13 EST


>>>>> "Tony" == Luck, Tony <tony.luck@xxxxxxxxx> writes:

Tony> Removing it completely might be better, it may force people to
Tony> look at how they are using HZ. But there are probably many old
Tony> programs that have:

After reading through the discussion that was what I kept coming back
to.

Tony> #ifndef HZ #define HZ 60 #endif

Tony> So this won't catch them.

Tony> The ultimate safe solution might be:

Tony> #define HZ Fix your program to use sysconf(_SC_CLK_TCK)! \ (and
Tony> BTW, you should not include kernel headers)

Tony> Which is highly likely to cause a compile failure (but should at
Tony> least provide a clue to the user on what they should do).

You have my vote for that one. Anything else is just going to cause
those broken userapps to continue doing the wrong thing. We should
really do this on all archs though.

Cheers,
Jes
-
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/