Initialize thread0.td_contested in init_turnstiles() rather than

mutex_init() as it is used by the turnstile code and is not mutex-specific.
This commit is contained in:
John Baldwin 2006-01-17 16:47:42 +00:00
parent 2037434379
commit 550d1c9392
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=154482
2 changed files with 1 additions and 3 deletions

View File

@ -904,9 +904,6 @@ void
mutex_init(void)
{
/* Setup thread0 so that mutexes work. */
LIST_INIT(&thread0.td_contested);
/* Setup turnstiles so that sleep mutexes work. */
init_turnstiles();

View File

@ -328,6 +328,7 @@ init_turnstiles(void)
NULL, MTX_SPIN);
}
mtx_init(&td_contested_lock, "td_contested", NULL, MTX_SPIN);
LIST_INIT(&thread0.td_contested);
thread0.td_turnstile = NULL;
}