Searched refs:td_lock (Results 1 - 14 of 14) sorted by relevance

/freebsd-10.0-release/sys/kern/
H A Dkern_mutex.c637 m = td->td_lock;
673 if (m != td->td_lock)
678 if (m == td->td_lock)
700 lock = td->td_lock;
701 td->td_lock = &blocked_lock;
711 MPASS(td->td_lock == &blocked_lock);
712 atomic_store_rel_ptr((volatile void *)&td->td_lock, (uintptr_t)new);
722 lock = td->td_lock;
723 td->td_lock = new;
H A Dsched_4bsd.c364 MPASS(ctd->td_lock == td->td_lock);
689 thread0.td_lock = &sched_lock;
797 childtd->td_lock = &sched_lock;
975 * Block the td_lock in order to avoid breaking the critical path.
977 if (td->td_lock != &sched_lock) {
1027 MPASS(newtd->td_lock == &sched_lock);
1050 cpu_switch(td, newtd, tmtx != NULL ? tmtx : td->td_lock);
1084 MPASS(td->td_lock == &sched_lock);
1286 if (td->td_lock !
[all...]
H A Dsched_ule.c987 td->td_lock = TDQ_LOCKPTR(to);
1190 if (td->td_lock == TDQ_LOCKPTR(tdq))
1410 thread0.td_lock = TDQ_LOCKPTR(TDQ_SELF());
1855 * Variadic version of thread_lock_unblock() that does not assume td_lock
1861 atomic_store_rel_ptr((volatile uintptr_t *)&td->td_lock,
1886 mtx = td->td_lock;
1901 MPASS(td->td_lock == TDQ_LOCKPTR(tdq));
1904 MPASS(td->td_lock == TDQ_LOCKPTR(tdq));
1959 * we always return with td_lock pointing to the current cpu's
1980 MPASS(td->td_lock
[all...]
H A Dsubr_sleepqueue.c483 MPASS(td->td_lock != &sc->sc_lock);
/freebsd-10.0-release/sys/arm/arm/
H A Dgenassym.c99 ASSYM(TD_LOCK, offsetof(struct thread, td_lock));
/freebsd-10.0-release/sys/mips/mips/
H A Dgenassym.c73 ASSYM(TD_LOCK, offsetof(struct thread, td_lock));
/freebsd-10.0-release/sys/sys/
H A Dproc.h205 struct mtx *volatile td_lock; /* replaces sched lock */ member in struct:thread
329 struct mtx *__m = (td)->td_lock; \
337 struct mtx *__m = (td)->td_lock; \
H A Dmutex.h127 mtx_unlock_spin((tdp)->td_lock)
/freebsd-10.0-release/sys/ia64/ia64/
H A Dmachdep.c468 atomic_store_rel_ptr(&old->td_lock, mtx);
471 while (atomic_load_acq_ptr(&new->td_lock) == &blocked_lock)
499 while (atomic_load_acq_ptr(&new->td_lock) == &blocked_lock)
/freebsd-10.0-release/sys/ddb/
H A Ddb_ps.c309 lock = (struct lock_object *)td->td_lock;
/freebsd-10.0-release/sys/amd64/amd64/
H A Dgenassym.c86 ASSYM(TD_LOCK, offsetof(struct thread, td_lock));
/freebsd-10.0-release/sys/i386/i386/
H A Dgenassym.c86 ASSYM(TD_LOCK, offsetof(struct thread, td_lock));
/freebsd-10.0-release/sys/powerpc/powerpc/
H A Dgenassym.c199 ASSYM(TD_LOCK, offsetof(struct thread, td_lock));
/freebsd-10.0-release/sys/sparc64/sparc64/
H A Dgenassym.c183 ASSYM(TD_LOCK, offsetof(struct thread, td_lock));

Completed in 177 milliseconds