diff options
author | jhb <jhb@FreeBSD.org> | 2001-06-28 04:03:29 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2001-06-28 04:03:29 +0000 |
commit | b3565b0fc99c1039f2e3bb4741fc982a6a6ee740 (patch) | |
tree | b4fdf5d2480868db6b4e1aa410082e953dafe414 /sys/i386/include/mptable.h | |
parent | 0bd9d86c0af02f2998bfd0eaf5b4dd49683dbc90 (diff) | |
download | FreeBSD-src-b3565b0fc99c1039f2e3bb4741fc982a6a6ee740.zip FreeBSD-src-b3565b0fc99c1039f2e3bb4741fc982a6a6ee740.tar.gz |
Get kernel profiling on SMP systems closer to working by replacing the
mcount spin mutex with a very simple non-recursive spinlock implemented
using atomic operations.
Diffstat (limited to 'sys/i386/include/mptable.h')
-rw-r--r-- | sys/i386/include/mptable.h | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/sys/i386/include/mptable.h b/sys/i386/include/mptable.h index 787a472..0a0de69 100644 --- a/sys/i386/include/mptable.h +++ b/sys/i386/include/mptable.h @@ -325,7 +325,7 @@ static void release_aps(void *dummy); struct mtx imen_mtx; /* lock region used by kernel profiling */ -struct mtx mcount_mtx; +int mcount_lock; #ifdef USE_COMLOCK /* locks com (tty) data/hardware accesses: a FASTINTR() */ @@ -335,12 +335,6 @@ struct mtx com_mtx; static void init_locks(void) { - /* - * XXX The mcount mutex probably needs to be statically initialized, - * since it will be used even in the function calls that get us to this - * point. - */ - mtx_init(&mcount_mtx, "mcount", MTX_DEF); #ifdef USE_COMLOCK mtx_init(&com_mtx, "com", MTX_SPIN); |