summaryrefslogtreecommitdiff
path: root/sys/kern/kern_ktrace.c
diff options
context:
space:
mode:
authorArtur Grabowski <art@cvs.openbsd.org>2007-05-16 17:27:32 +0000
committerArtur Grabowski <art@cvs.openbsd.org>2007-05-16 17:27:32 +0000
commita5055ebb8629500104a3b1d3dc614f04db4f363e (patch)
treee7ea33d78c280d57703780e4a90cb563f4d674b4 /sys/kern/kern_ktrace.c
parent12c89e80fa52a6fdd0b959dbe94d18e61053d63e (diff)
The world of __HAVEs and __HAVE_NOTs is reducing. All architectures
have cpu_info now, so kill the option. eyeballed by jsg@ and grange@
Diffstat (limited to 'sys/kern/kern_ktrace.c')
-rw-r--r--sys/kern/kern_ktrace.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/sys/kern/kern_ktrace.c b/sys/kern/kern_ktrace.c
index c65b8b78458..ce85d215862 100644
--- a/sys/kern/kern_ktrace.c
+++ b/sys/kern/kern_ktrace.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: kern_ktrace.c,v 1.41 2006/11/14 09:16:55 deraadt Exp $ */
+/* $OpenBSD: kern_ktrace.c,v 1.42 2007/05/16 17:27:30 art Exp $ */
/* $NetBSD: kern_ktrace.c,v 1.23 1996/02/09 18:59:36 christos Exp $ */
/*
@@ -207,11 +207,7 @@ ktrgenio(struct proc *p, int fd, enum uio_rw rw, struct iovec *iov, int len,
* Don't allow this process to hog the cpu when doing
* huge I/O.
*/
-#ifdef __HAVE_CPUINFO
if (curcpu()->ci_schedstate.spc_schedflags & SPCF_SHOULDYIELD)
-#else
- if (p->p_schedflags & PSCHED_SHOULDYIELD)
-#endif
preempt(NULL);
count = min(iov->iov_len, buflen);