From bec3346df40450e253beff2aa53827212bf6000b Mon Sep 17 00:00:00 2001 From: jeff Date: Tue, 5 Jun 2007 03:46:54 +0000 Subject: - 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 --- sys/kern/sched_4bsd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sys/kern/sched_4bsd.c') 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, -- cgit v1.1