summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordm <dm@openbsd.org>1996-08-08 22:21:23 +0000
committerdm <dm@openbsd.org>1996-08-08 22:21:23 +0000
commit767f4c9d252692b7babc00bda73e4c3e28d195bb (patch)
tree633df88ab95e5a9ffcad7f95fb379ad38241aa0c
parentSadly, the performance counters don't seem to work on the pentium pro. (diff)
downloadwireguard-openbsd-767f4c9d252692b7babc00bda73e4c3e28d195bb.tar.xz
wireguard-openbsd-767f4c9d252692b7babc00bda73e4c3e28d195bb.zip
Allow idle loop to be read even on 486's.
-rw-r--r--sys/arch/i386/i386/pctr.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/sys/arch/i386/i386/pctr.c b/sys/arch/i386/i386/pctr.c
index f1500d9559a..ed4c5dae112 100644
--- a/sys/arch/i386/i386/pctr.c
+++ b/sys/arch/i386/i386/pctr.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pctr.c,v 1.2 1996/08/08 21:37:31 dm Exp $ */
+/* $OpenBSD: pctr.c,v 1.3 1996/08/08 22:21:23 dm Exp $ */
/*
* Pentium performance counter driver for OpenBSD.
@@ -110,10 +110,6 @@ pctrset (int fflag, int cmd, u_short fn)
int
pctrioctl (dev_t dev, int cmd, caddr_t data, int fflag, struct proc *p)
{
-
- if (minor (dev) || cpu_class < CPUCLASS_586)
- panic ("pctr: bad device %d should never have been opened.\n", dev);
-
switch (cmd) {
case PCIOCRD:
{