summaryrefslogtreecommitdiffstats
path: root/sys/kern/kern_mutex.c
diff options
context:
space:
mode:
authorjake <jake@FreeBSD.org>2001-02-28 02:53:44 +0000
committerjake <jake@FreeBSD.org>2001-02-28 02:53:44 +0000
commit623f06756a2fee7aa42dcd2328139007fd86bdb8 (patch)
tree2c59521942b2c5e581e4929f8e039ce2f6c63ccd /sys/kern/kern_mutex.c
parentb31794bc17abbe5f5aec97c5172725ab3fbb9443 (diff)
downloadFreeBSD-src-623f06756a2fee7aa42dcd2328139007fd86bdb8.zip
FreeBSD-src-623f06756a2fee7aa42dcd2328139007fd86bdb8.tar.gz
Sigh. Try to get priorities sorted out. Don't bother trying to
update native priority, it is diffcult to get right and likely to end up horribly wrong. Use an honestly wrong fixed value that seems to work; PUSER for user threads, and the interrupt priority for ithreads. Set it once when the process is created and forget about it. Suggested by: bde Pointy hat: me
Diffstat (limited to 'sys/kern/kern_mutex.c')
-rw-r--r--sys/kern/kern_mutex.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/sys/kern/kern_mutex.c b/sys/kern/kern_mutex.c
index fbee435..0b0ba86 100644
--- a/sys/kern/kern_mutex.c
+++ b/sys/kern/kern_mutex.c
@@ -426,8 +426,6 @@ _mtx_lock_sleep(struct mtx *m, int opts, const char *file, int line)
p->p_blocked = m;
p->p_mtxname = m->mtx_description;
p->p_stat = SMTX;
- if (p->p_pri.pri_native == PRI_MAX)
- p->p_pri.pri_native = p->p_pri.pri_level;
propagate_priority(p);
if ((opts & MTX_QUIET) == 0)
OpenPOWER on IntegriCloud