diff options
author | jeff <jeff@FreeBSD.org> | 2007-06-05 03:46:54 +0000 |
---|---|---|
committer | jeff <jeff@FreeBSD.org> | 2007-06-05 03:46:54 +0000 |
commit | bec3346df40450e253beff2aa53827212bf6000b (patch) | |
tree | ee6dea998b43721f519759f9d043e12f9365ae1b /sys/kern/sched_ule.c | |
parent | c5295bd51be8a401c90f70b0904796b55bc61f84 (diff) | |
download | FreeBSD-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_ule.c')
-rw-r--r-- | sys/kern/sched_ule.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/kern/sched_ule.c b/sys/kern/sched_ule.c index 83d6833..895410b 100644 --- a/sys/kern/sched_ule.c +++ b/sys/kern/sched_ule.c @@ -1487,7 +1487,7 @@ sched_switch(struct thread *td, struct thread *newtd, int flags) PMC_SWITCH_CONTEXT(td, PMC_FN_CSW_OUT); #endif - cpu_switch(td, newtd, td->td_lock); + cpu_switch(td, newtd, &sched_lock); #ifdef HWPMC_HOOKS if (PMC_PROC_IS_USING_PMCS(td->td_proc)) PMC_SWITCH_CONTEXT(td, PMC_FN_CSW_IN); |