diff --git a/lib/libthr/thread/thr_mutex.c b/lib/libthr/thread/thr_mutex.c index 0e3cebe49144..7d5922ac1582 100644 --- a/lib/libthr/thread/thr_mutex.c +++ b/lib/libthr/thread/thr_mutex.c @@ -128,7 +128,6 @@ mutex_init(pthread_mutex_t *mutex, pmutex->m_prio = attr->m_ceiling; else pmutex->m_prio = -1; - pmutex->m_saved_prio = 0; MUTEX_INIT_LINK(pmutex); *mutex = pmutex; return (0); @@ -191,7 +190,6 @@ _mutex_reinit(pthread_mutex_t *mutex) (*mutex)->m_count = 0; (*mutex)->m_refcount = 0; (*mutex)->m_prio = 0; - (*mutex)->m_saved_prio = 0; return (0); } diff --git a/lib/libthr/thread/thr_private.h b/lib/libthr/thread/thr_private.h index bb6c999b71e1..4ec4208b5051 100644 --- a/lib/libthr/thread/thr_private.h +++ b/lib/libthr/thread/thr_private.h @@ -121,18 +121,10 @@ struct pthread_mutex { int m_refcount; /* - * Used for priority inheritence and protection. - * - * m_prio - For priority inheritence, the highest active - * priority (threads locking the mutex inherit - * this priority). For priority protection, the - * ceiling priority of this mutex. - * m_saved_prio - mutex owners inherited priority before - * taking the mutex, restored when the owner - * unlocks the mutex. + * Used for priority protection, the ceiling priority of + * this mutex. */ int m_prio; - int m_saved_prio; /* * Link for list of all mutexes a thread currently owns.