diff options
author | Mike Belopuhov <mikeb@cvs.openbsd.org> | 2007-10-24 17:57:02 +0000 |
---|---|---|
committer | Mike Belopuhov <mikeb@cvs.openbsd.org> | 2007-10-24 17:57:02 +0000 |
commit | 0b7585b7a2d18ed891350058bf8e28630e502fa2 (patch) | |
tree | be6c661daada706c7abcb5053f48e4c549e3667d /sys/arch/amd64 | |
parent | 095a8f3234cd3183e9177d1ea4178a2d01aae4b8 (diff) |
Remove idle loop counter.
ok art deraadt
Diffstat (limited to 'sys/arch/amd64')
-rw-r--r-- | sys/arch/amd64/amd64/pctr.c | 5 | ||||
-rw-r--r-- | sys/arch/amd64/include/pctr.h | 3 |
2 files changed, 2 insertions, 6 deletions
diff --git a/sys/arch/amd64/amd64/pctr.c b/sys/arch/amd64/amd64/pctr.c index e47f4ddb6e8..fb1bbd43498 100644 --- a/sys/arch/amd64/amd64/pctr.c +++ b/sys/arch/amd64/amd64/pctr.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pctr.c,v 1.3 2007/10/24 06:30:21 mikeb Exp $ */ +/* $OpenBSD: pctr.c,v 1.4 2007/10/24 17:56:56 mikeb Exp $ */ /* * Copyright (c) 2007 Mike Belopuhov @@ -44,8 +44,6 @@ #define usepctr ((pctr_isamd || pctr_isintel) && \ ((cpu_id >> 8) & 15) >= 6) -u_int64_t pctr_idlcnt; /* Gets incremented in locore.S */ - int pctr_isamd; int pctr_isintel; @@ -153,7 +151,6 @@ pctrioctl(dev_t dev, u_long cmd, caddr_t data, int fflag, struct proc *p) pctrrd(st); else if (usetsc) st->pctr_tsc = rdtsc(); - st->pctr_idl = pctr_idlcnt; return (0); } case PCIOCS0: diff --git a/sys/arch/amd64/include/pctr.h b/sys/arch/amd64/include/pctr.h index 18e7f6fc14e..427bcb52ee0 100644 --- a/sys/arch/amd64/include/pctr.h +++ b/sys/arch/amd64/include/pctr.h @@ -1,4 +1,4 @@ -/* $OpenBSD: pctr.h,v 1.2 2007/10/17 02:30:26 deraadt Exp $ */ +/* $OpenBSD: pctr.h,v 1.3 2007/10/24 17:56:57 mikeb Exp $ */ /* * Pentium performance counter driver for OpenBSD. @@ -22,7 +22,6 @@ struct pctrst { u_int pctr_fn[PCTR_NUM]; /* Current settings of 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 */ |