Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/kern use curcpu() rather than curlwp->l_cpu.
details: https://anonhg.NetBSD.org/src/rev/1d3ed2e69b26
branches: trunk
changeset: 551681:1d3ed2e69b26
user: yamt <yamt%NetBSD.org@localhost>
date: Wed Sep 10 10:55:50 2003 +0000
description:
use curcpu() rather than curlwp->l_cpu.
diffstat:
sys/kern/kern_subr.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r f1daa8b5b131 -r 1d3ed2e69b26 sys/kern/kern_subr.c
--- a/sys/kern/kern_subr.c Wed Sep 10 10:40:40 2003 +0000
+++ b/sys/kern/kern_subr.c Wed Sep 10 10:55:50 2003 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: kern_subr.c,v 1.103 2003/08/07 16:31:49 agc Exp $ */
+/* $NetBSD: kern_subr.c,v 1.104 2003/09/10 10:55:50 yamt Exp $ */
/*-
* Copyright (c) 1997, 1998, 1999, 2002 The NetBSD Foundation, Inc.
@@ -86,7 +86,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: kern_subr.c,v 1.103 2003/08/07 16:31:49 agc Exp $");
+__KERNEL_RCSID(0, "$NetBSD: kern_subr.c,v 1.104 2003/09/10 10:55:50 yamt Exp $");
#include "opt_ddb.h"
#include "opt_md.h"
@@ -164,7 +164,7 @@
switch (uio->uio_segflg) {
case UIO_USERSPACE:
- if (curlwp->l_cpu->ci_schedstate.spc_flags &
+ if (curcpu()->ci_schedstate.spc_flags &
SPCF_SHOULDYIELD)
preempt(1);
if (__predict_true(p == curproc)) {
Home |
Main Index |
Thread Index |
Old Index