summaryrefslogtreecommitdiff
path: root/tune/freq.c
diff options
context:
space:
mode:
authorKevin Ryde <user42@zip.com.au>2003-10-07 01:02:34 +0200
committerKevin Ryde <user42@zip.com.au>2003-10-07 01:02:34 +0200
commit97648d51e27726c4b24e6529b82a2b3354bfc92f (patch)
tree0be62e329b171075a4b2060daa3521d588cf8381 /tune/freq.c
parent4afcbbbd5a37c1ba2f591f0adff1da1dc0b7f94c (diff)
downloadgmp-97648d51e27726c4b24e6529b82a2b3354bfc92f.tar.gz
* configure.in: Check for psp_iticksperclktick in struct pst_processor.
* tune/freq.c (freq_pstat_getprocessor): Use this.
Diffstat (limited to 'tune/freq.c')
-rw-r--r--tune/freq.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/tune/freq.c b/tune/freq.c
index c61f14de2..b833aaa20 100644
--- a/tune/freq.c
+++ b/tune/freq.c
@@ -161,14 +161,14 @@ freq_getsysinfo (int help)
/* In HPUX 10 and up, pstat_getprocessor() psp_iticksperclktick is the
- number of CPU cycles (ie. the CR16 register) per CLK_TCK. HPUX 9 has
- similar pstat functions (see /usr/include/sys/pstat.h), but doesn't have
- pstat_getprocessor or any apparent equivalent. */
+ number of CPU cycles (ie. the CR16 register) per CLK_TCK. HPUX 9 doesn't
+ have that field in pst_processor though, and has no apparent
+ equivalent. */
static int
freq_pstat_getprocessor (int help)
{
-#if HAVE_PSTAT_GETPROCESSOR
+#if HAVE_PSTAT_GETPROCESSOR && HAVE_PSP_ITICKSPERCLKTICK
struct pst_processor p;
HELP ("pstat_getprocessor() psp_iticksperclktick");