ad
ac85866313
simple_lock_only_held() is gone.
2008-01-05 12:31:39 +00:00
xtraeme
9bb6b94d89
sys/lock.h is required now. ok ad
2008-01-04 21:31:06 +00:00
ad
0664a0459b
Start detangling lock.h from intr.h. This is likely to cause short term
...
breakage, but the mess of dependencies has been regularly breaking the
build recently anyhow.
2008-01-04 21:17:40 +00:00
ad
ce6680f888
Add back mutex_owner() for Solaris compat.
2007-12-24 14:57:56 +00:00
ad
f2fb0b3870
mutex_init: use 'if' instead of 'switch' to avoid complaints from the
...
compiler.
2007-12-06 01:18:46 +00:00
ad
b21038696d
mutex_init: make MUTEX_DEFAULT + IPL_SOFT* return an adaptive mutex.
2007-12-05 06:50:07 +00:00
ad
b470ab628d
Use membar_*().
2007-11-30 23:05:43 +00:00
yamt
38d5e34116
make kmutex_t and krwlock_t smaller by killing lock id.
...
ok'ed by Andrew Doran.
2007-11-21 10:19:06 +00:00
ad
d18c6ca4de
Merge from vmlocking:
...
- pool_cache changes.
- Debugger/procfs locking fixes.
- Other minor changes.
2007-11-07 00:23:13 +00:00
pooka
c71057099f
fix typo in comment (greetings to ad, someone read your longwinded
...
prattling dissertation)
2007-11-04 17:26:02 +00:00
ad
a2a3828545
machine/{bus,cpu,intr}.h -> sys/{bus,cpu,intr}.h
2007-10-19 11:59:34 +00:00
ad
11dc639958
Merge from vmlocking:
...
- G/C spinlockmgr() and simple_lock debugging.
- Always include the kernel_lock functions, for LKMs.
- Slightly improved subr_lockdebug code.
- Keep sizeof(struct lock) the same if LOCKDEBUG.
2007-10-11 19:45:24 +00:00
dsl
0ca3d21b5b
Include sys/cdefs.h first.
2007-09-21 19:14:12 +00:00
ad
5b3ae27b0d
__FUNCTION__ -> __func__
2007-09-17 21:33:34 +00:00
skrll
9fdaf800d9
Merge nick-csl-alignment.
2007-09-10 11:34:05 +00:00
ad
88ab7da936
Merge some of the less invasive changes from the vmlocking branch:
...
- kthread, callout, devsw API changes
- select()/poll() improvements
- miscellaneous MT safety improvements
2007-07-09 20:51:58 +00:00
yamt
f03010953f
merge yamt-idlelwp branch. asked by core@. some ports still needs work.
...
from doc/BRANCHES:
idle lwp, and some changes depending on it.
1. separate context switching and thread scheduling.
(cf. gmcgarry_ctxsw)
2. implement idle lwp.
3. clean up related MD/MI interfaces.
4. make scheduler(s) modular.
2007-05-17 14:51:11 +00:00
ad
bf8c3c1d7b
mutex_vector_enter: put a read memory barrier between the final check that
...
(1) the holder is no longer running and (2) the waiters bit is set. Needed
to ensure that the operations happen in the correct order.
2007-03-12 22:34:08 +00:00
matt
57257364a0
Define/use MUTEX_COUNT_BIAS for those implementations that need one (like
...
vax).
2007-03-12 02:19:14 +00:00
ad
b1da576054
Add a MUTEX_NODEBUG type that avoids allocating debugging resources for
...
the lock. To be used for e.g. struct vm_page until a better way is found.
2007-03-10 16:01:13 +00:00
ad
50a8df5d23
mutex_onproc: remove unnecessary memory barriers.
2007-03-09 14:08:26 +00:00
mrg
3a04ec414c
change an error message from:
...
Mutex error: sched_unlock_idle: sched_unlock_idle
to
Mutex error: sched_unlock_idle: sched_mutex not locked
2007-03-04 21:06:13 +00:00
itohy
d2585a8c91
Remove extra space so that symbol renaming works properly.
2007-03-03 10:08:18 +00:00
itohy
cdbe0f0296
kern_mutex.c:190: macro `MUTEX_RECEIVE' used without args
...
kern_mutex.c:199: macro `MUTEX_RECEIVE' used without args
kern_mutex.c:206: macro `MUTEX_GIVE' used without args
2007-03-02 13:14:12 +00:00
ad
cbe547e6a7
- Nuke mutex_owner()
...
- mutex_getowner() -> mutex_owner()
2007-02-26 19:11:28 +00:00
yamt
e781af39bd
implement priority inheritance.
2007-02-26 09:20:52 +00:00
ad
10a11a26b3
- Add a mutex_wakeup() which clears the waiters flag and wakes all waiters.
...
Will be needed to fix a problem with mutexes on sparc.
- mutex_tryenter(): fix a false "locking against myself" error.
2007-02-15 15:49:27 +00:00
ad
6bcf70b518
- Add/correct comments.
...
- Print correct function name when an assertion triggers.
2007-02-10 21:07:52 +00:00
ad
b07ec3fc38
Merge newlock2 to head.
2007-02-09 21:55:00 +00:00