From 7a9c95c1006958928813d10d99735b67778a03e7 Mon Sep 17 00:00:00 2001 From: jeff Date: Wed, 6 Jun 2007 03:40:47 +0000 Subject: - Placing the 'volatile' on the right side of the * in the td_lock declaration removes the need for __DEVOLATILE(). Pointed out by: tegge --- sys/kern/sched_ule.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sys/kern/sched_ule.c') 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); -- cgit v1.1