diff options
author | Artur Grabowski <art@cvs.openbsd.org> | 2007-05-16 17:27:32 +0000 |
---|---|---|
committer | Artur Grabowski <art@cvs.openbsd.org> | 2007-05-16 17:27:32 +0000 |
commit | a5055ebb8629500104a3b1d3dc614f04db4f363e (patch) | |
tree | e7ea33d78c280d57703780e4a90cb563f4d674b4 /sys/kern/kern_ktrace.c | |
parent | 12c89e80fa52a6fdd0b959dbe94d18e61053d63e (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.c | 6 |
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); |