>>>>> "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 - : send the line "unsubscribe linux-ia64" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html
![]() |