diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 1997-09-16 07:52:36 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 1997-09-16 07:52:36 +0000 |
commit | d47f22b331e16fe906bf53b00014036076b06589 (patch) | |
tree | 7d5ae6c42a20f57a1f50040925a235c23a02069d /sys/arch/i386/include/pctr.h | |
parent | 61244d6413ce85a5efd6cabfbcdddf7c975c62ad (diff) |
no need to include sys/ioccom.h; guy@netapp.com
Diffstat (limited to 'sys/arch/i386/include/pctr.h')
-rw-r--r-- | sys/arch/i386/include/pctr.h | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/sys/arch/i386/include/pctr.h b/sys/arch/i386/include/pctr.h index 06458b6007a..fd667b09196 100644 --- a/sys/arch/i386/include/pctr.h +++ b/sys/arch/i386/include/pctr.h @@ -1,4 +1,4 @@ -/* $OpenBSD: pctr.h,v 1.7 1997/09/08 21:21:42 dm Exp $ */ +/* $OpenBSD: pctr.h,v 1.8 1997/09/16 07:52:35 deraadt Exp $ */ /* * Pentium performance counter driver for OpenBSD. @@ -13,15 +13,17 @@ #ifndef _I386_PCTR_H_ #define _I386_PCTR_H_ +#include <sys/ioccom.h> + typedef u_quad_t pctrval; #define PCTR_NUM 2 struct pctrst { - u_int pctr_fn[PCTR_NUM]; /* Current settings of hardware counters */ - pctrval pctr_tsc; /* Free-running 64-bit cycle counter */ - pctrval pctr_hwc[PCTR_NUM]; /* Values of the hardware counters */ - pctrval pctr_idl; /* Iterations of the idle loop */ + u_int pctr_fn[PCTR_NUM]; /* Current settings of hardware counters */ + pctrval pctr_tsc; /* Free-running 64-bit cycle counter */ + pctrval pctr_hwc[PCTR_NUM]; /* Values of the hardware counters */ + pctrval pctr_idl; /* Iterations of the idle loop */ }; /* Bit values in fn fields and PIOCS ioctl's */ @@ -52,7 +54,6 @@ struct pctrst { #define _PATH_PCTR "/dev/pctr" - #define __cpuid() \ ({ \ pctrval id; \ |