summaryrefslogtreecommitdiffstats
path: root/sys/kern/sched_4bsd.c
diff options
context:
space:
mode:
authorjeff <jeff@FreeBSD.org>2007-06-05 03:46:54 +0000
committerjeff <jeff@FreeBSD.org>2007-06-05 03:46:54 +0000
commitbec3346df40450e253beff2aa53827212bf6000b (patch)
treeee6dea998b43721f519759f9d043e12f9365ae1b /sys/kern/sched_4bsd.c
parentc5295bd51be8a401c90f70b0904796b55bc61f84 (diff)
downloadFreeBSD-src-bec3346df40450e253beff2aa53827212bf6000b.zip
FreeBSD-src-bec3346df40450e253beff2aa53827212bf6000b.tar.gz
- Pass &sched_lock as the third argument to cpu_switch() as this will
always be the correct lock and we don't get volatile warnings this way. Pointed out by: kan
Diffstat (limited to 'sys/kern/sched_4bsd.c')
-rw-r--r--sys/kern/sched_4bsd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/kern/sched_4bsd.c b/sys/kern/sched_4bsd.c
index a4b1e08..bd3286c 100644
--- a/sys/kern/sched_4bsd.c
+++ b/sys/kern/sched_4bsd.c
@@ -903,7 +903,7 @@ sched_switch(struct thread *td, struct thread *newtd, int flags)
#endif
/* I feel sleepy */
- cpu_switch(td, newtd, td->td_lock);
+ cpu_switch(td, newtd, &sched_lock);
/*
* Where am I? What year is it?
* We are in the same thread that went to sleep above,
OpenPOWER on IntegriCloud