diff options
author | Bruce Evans <bde@FreeBSD.org> | 1996-09-21 14:59:43 +0000 |
---|---|---|
committer | Bruce Evans <bde@FreeBSD.org> | 1996-09-21 14:59:43 +0000 |
commit | ebedb5ad97718c0a271659c2563834837607f03f (patch) | |
tree | e03f53db0e9dc53fdad8b0a593af598744be17da /sys/i386/include/perfmon.h | |
parent | 83f52dababadc2c364a5ad22dbef8ea4e197530c (diff) | |
download | src-ebedb5ad97718c0a271659c2563834837607f03f.tar.gz src-ebedb5ad97718c0a271659c2563834837607f03f.zip |
Cleaned up all headers that include <sys/ioctl.h> or <sys/ioccom.h>:
- don't include <sys/ioctl.h> in any header. Include <sys/ioccom.h>
instead. This was already done in 4.4Lite for the most important
ioctl headers. Header spam currently increases kernel build
times by 10-20%. There are more than 30000 #includes (not counting
duplicates) for compiling LINT.
- include <sys/types.h> if and only it is necessary to make the header
almost self-sufficient (some ioctl headers still need structs from
elsewhere).
- uniformized idempotency ifdefs. Copied the style in the 4.4Lite
ioctl headers.
Notes
Notes:
svn path=/head/; revision=18444
Diffstat (limited to 'sys/i386/include/perfmon.h')
-rw-r--r-- | sys/i386/include/perfmon.h | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/sys/i386/include/perfmon.h b/sys/i386/include/perfmon.h index 8aec6dfab2d3..8e5023c5409b 100644 --- a/sys/i386/include/perfmon.h +++ b/sys/i386/include/perfmon.h @@ -26,7 +26,7 @@ * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id$ + * $Id: perfmon.h,v 1.1 1996/03/26 19:57:56 wollman Exp $ */ /* @@ -34,12 +34,13 @@ * Pentium Pro CPUs. */ -#ifndef _MACHINE_PERFMON_H_ -#define _MACHINE_PERFMON_H_ 1 +#ifndef _MACHINE_PERFMON_H_ +#define _MACHINE_PERFMON_H_ #ifndef KERNEL -#include <sys/ioccom.h> +#include <sys/types.h> #endif +#include <sys/ioccom.h> #define NPMC 2 @@ -258,4 +259,4 @@ int perfmon_ioctl __P((dev_t, int, caddr_t, int, struct proc *)); #define PMC5_DATA_RW 40 #define PMC5_DATA_RW_MISS 41 -#endif /* _MACHINE_PERFMON_H_ */ +#endif /* !_MACHINE_PERFMON_H_ */ |