diff options
author | jasone <jasone@FreeBSD.org> | 2001-01-21 07:52:20 +0000 |
---|---|---|
committer | jasone <jasone@FreeBSD.org> | 2001-01-21 07:52:20 +0000 |
commit | 24d53563ed2aafc4622e310d16018cbbd0c95388 (patch) | |
tree | 0ed4cd8e7aa2e3a663ed7f62261fe70082bc423c /sys/pc98/i386 | |
parent | db586afb8bf54fe67c82b3bd5e80f1c1bc8dac47 (diff) | |
download | FreeBSD-src-24d53563ed2aafc4622e310d16018cbbd0c95388.zip FreeBSD-src-24d53563ed2aafc4622e310d16018cbbd0c95388.tar.gz |
Remove MUTEX_DECLARE() and MTX_COLD. Instead, postpone full mutex
initialization until after malloc() is safe to call, then iterate through
all mutexes and complete their initialization.
This change is necessary in order to avoid some circular bootstrapping
dependencies.
Diffstat (limited to 'sys/pc98/i386')
-rw-r--r-- | sys/pc98/i386/machdep.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/pc98/i386/machdep.c b/sys/pc98/i386/machdep.c index cf9df15..4105324 100644 --- a/sys/pc98/i386/machdep.c +++ b/sys/pc98/i386/machdep.c @@ -262,8 +262,8 @@ static struct globaldata __globaldata; struct cpuhead cpuhead; -MUTEX_DECLARE(,sched_lock); -MUTEX_DECLARE(,Giant); +struct mtx sched_lock; +struct mtx Giant; static void cpu_startup(dummy) @@ -454,7 +454,7 @@ again: SLIST_INIT(&cpuhead); SLIST_INSERT_HEAD(&cpuhead, GLOBALDATA, gd_allcpu); - mtx_init(&sched_lock, "sched lock", MTX_SPIN | MTX_COLD | MTX_RECURSE); + mtx_init(&sched_lock, "sched lock", MTX_SPIN | MTX_RECURSE); #ifdef SMP /* @@ -2248,7 +2248,7 @@ init386(first) /* * We need this mutex before the console probe. */ - mtx_init(&clock_lock, "clk", MTX_SPIN | MTX_COLD | MTX_RECURSE); + mtx_init(&clock_lock, "clk", MTX_SPIN | MTX_RECURSE); /* * Initialize the console before we print anything out. @@ -2263,7 +2263,7 @@ init386(first) /* * Giant is used early for at least debugger traps and unexpected traps. */ - mtx_init(&Giant, "Giant", MTX_DEF | MTX_COLD | MTX_RECURSE); + mtx_init(&Giant, "Giant", MTX_DEF | MTX_RECURSE); #ifdef DDB kdb_init(); |