diff options
author | jeff <jeff@FreeBSD.org> | 2007-06-06 03:40:47 +0000 |
---|---|---|
committer | jeff <jeff@FreeBSD.org> | 2007-06-06 03:40:47 +0000 |
commit | 7a9c95c1006958928813d10d99735b67778a03e7 (patch) | |
tree | 6e1a416746fad7d57f2b0f3b1f0430655bd995a9 /sys/kern/sched_ule.c | |
parent | aed2a0bc2931b2e8d1b39a45093c62e28fb3ff3d (diff) | |
download | FreeBSD-src-7a9c95c1006958928813d10d99735b67778a03e7.zip FreeBSD-src-7a9c95c1006958928813d10d99735b67778a03e7.tar.gz |
- Placing the 'volatile' on the right side of the * in the td_lock
declaration removes the need for __DEVOLATILE().
Pointed out by: tegge
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 e374b50..83d6833 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, __DEVOLATILE(struct mtx *, td->td_lock)); + cpu_switch(td, newtd, td->td_lock); #ifdef HWPMC_HOOKS if (PMC_PROC_IS_USING_PMCS(td->td_proc)) PMC_SWITCH_CONTEXT(td, PMC_FN_CSW_IN); |