All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] ia64: change usermode HZ to 250
@ 2006-06-27 22:01 ` hawkes
  0 siblings, 0 replies; 60+ messages in thread
From: hawkes @ 2006-06-27 22:01 UTC (permalink / raw)
  To: Tony Luck, Andrew Morton, linux-ia64, linux-kernel
  Cc: Jack Steiner, Dan Higgins, hawkes, Jeremy Higdon

include/asm-ia64/param.h defines HZ to be 1024 for usermode use, i.e.,
when the file gets installed as /usr/include/asm/param.h.
As the comment says:
    Technically, this is wrong, but some old apps still refer to it.  
    The proper way to get the HZ value is via sysconf(_SC_CLK_TCK).
At the very least, this technically wrong #define ought to reflect the
current default value (250) used by all arch/ia64 platforms.  No one uses
1024 anymore.  This makes those "old apps" (e.g., usr/bin/iostat) behave
properly for with a default kernel.  (And at some point, the define ought
to be removed altogether, which would expose all the applications that
erroneously expect HZ to be a compile-time constant.)

Signed-off-by: John Hawkes <hawkes@sgi.com>

Index: linux/include/asm-ia64/param.h
=================================--- linux.orig/include/asm-ia64/param.h	2006-06-17 18:49:35.000000000 -0700
+++ linux/include/asm-ia64/param.h	2006-06-27 14:46:53.119407077 -0700
@@ -36,7 +36,7 @@
     * Technically, this is wrong, but some old apps still refer to it.  The proper way to
     * get the HZ value is via sysconf(_SC_CLK_TCK).
     */
-# define HZ 1024
+# define HZ 250
 #endif
 
 #endif /* _ASM_IA64_PARAM_H */

^ permalink raw reply	[flat|nested] 60+ messages in thread

end of thread, other threads:[~2006-07-12  2:02 UTC | newest]

Thread overview: 60+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-06-27 22:01 [PATCH] ia64: change usermode HZ to 250 hawkes
2006-06-27 22:01 ` hawkes
2006-06-27 22:26 ` Luck, Tony
2006-06-27 22:26   ` Luck, Tony
2006-06-27 23:09   ` Lee Revell
2006-06-27 23:09     ` Lee Revell
2006-06-28  8:43   ` Arjan van de Ven
2006-06-28  8:43     ` Arjan van de Ven
2006-06-28 10:47     ` Alan Cox
2006-06-28 10:47       ` Alan Cox
2006-06-28 10:34       ` Arjan van de Ven
2006-06-28 10:34         ` Arjan van de Ven
2006-06-28 14:46         ` Christoph Lameter
2006-06-28 14:46           ` Christoph Lameter
2006-06-28  8:39 ` Arjan van de Ven
2006-06-28  8:39   ` Arjan van de Ven
2006-06-28 15:43   ` John Hawkes
2006-06-28 15:43     ` John Hawkes
2006-06-28 16:21     ` Alan Cox
2006-06-28 16:21       ` Alan Cox
2006-06-28 16:11       ` John Daiker
2006-06-28 16:11         ` John Daiker
2006-06-28 16:50         ` Alan Cox
2006-06-28 16:50           ` Alan Cox
2006-06-28 17:36 ` Luck, Tony
2006-06-28 17:36   ` Luck, Tony
2006-06-29  9:37   ` Jes Sorensen
2006-06-29  9:37     ` Jes Sorensen
2006-06-29 10:46     ` Alan Cox
2006-06-29 11:02       ` Alan Cox
2006-06-29 10:48       ` Jes Sorensen
2006-06-29 10:48         ` Jes Sorensen
2006-06-29 10:55         ` Arjan van de Ven
2006-06-29 10:55           ` Arjan van de Ven
2006-06-29 12:56           ` Jes Sorensen
2006-06-29 12:56             ` Jes Sorensen
2006-07-08  0:14           ` Jeremy Higdon
2006-07-08  0:14             ` Jeremy Higdon
2006-07-08  2:51             ` Tony Luck
2006-07-08  2:51               ` Tony Luck
2006-07-08  6:42             ` Arjan van de Ven
2006-07-08  6:42               ` Arjan van de Ven
2006-07-08 13:07               ` David Mosberger-Tang
2006-07-08 13:07                 ` David Mosberger-Tang
2006-07-10 20:22                 ` Jeremy Higdon
2006-07-10 20:22                   ` Jeremy Higdon
2006-07-11  3:01                   ` David Mosberger-Tang
2006-07-11  3:01                     ` David Mosberger-Tang
2006-07-11  9:53                     ` Alan Cox
2006-07-11 10:10                       ` Alan Cox
2006-07-11 18:37                     ` Jeremy Higdon
2006-07-11 18:37                       ` Jeremy Higdon
2006-07-12  2:02                       ` David Mosberger-Tang
2006-07-12  2:02                         ` David Mosberger-Tang
2006-06-29 11:34         ` Alan Cox
2006-06-29 11:34           ` Alan Cox
2006-06-29 14:09 ` Albert Cahalan
2006-06-29 14:09   ` Albert Cahalan
2006-07-09 19:18 ` Luck, Tony
2006-07-09 19:18   ` Luck, Tony

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.