diff options
author | Steve Passe <fsmp@FreeBSD.org> | 1997-09-01 07:31:54 +0000 |
---|---|---|
committer | Steve Passe <fsmp@FreeBSD.org> | 1997-09-01 07:31:54 +0000 |
commit | 7245dff0f1aa3a9f4e5481f643ab6981a0b0d41c (patch) | |
tree | 6b534f206f434930a6ed15986aebeff8bedd16e1 /sys/kern/subr_smp.c | |
parent | b8594fe0544399db72a068b55273ad5dbc11118a (diff) | |
download | src-7245dff0f1aa3a9f4e5481f643ab6981a0b0d41c.tar.gz src-7245dff0f1aa3a9f4e5481f643ab6981a0b0d41c.zip |
Cleanup.
Notes
Notes:
svn path=/head/; revision=28999
Diffstat (limited to 'sys/kern/subr_smp.c')
-rw-r--r-- | sys/kern/subr_smp.c | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/sys/kern/subr_smp.c b/sys/kern/subr_smp.c index 1cca90d9d0fd..6b402b187fb1 100644 --- a/sys/kern/subr_smp.c +++ b/sys/kern/subr_smp.c @@ -1454,19 +1454,19 @@ struct simplelock fast_intr_lock; /* critical region around INTR() routines */ struct simplelock intr_lock; -/* lock regions around the clock hardware */ -struct simplelock clock_lock; - -#ifdef SIMPLE_MPINTRLOCK /* lock regions protected in UP kernel via cli/sti */ struct simplelock mpintr_lock; -#endif #ifdef USE_COMLOCK /* locks com (tty) data/hardware accesses: a FASTINTR() */ struct simplelock com_lock; #endif /* USE_COMLOCK */ +#ifdef USE_CLOCKLOCK +/* lock regions around the clock hardware */ +struct simplelock clock_lock; +#endif /* USE_CLOCKLOCK */ + static void init_locks(void) { @@ -1479,17 +1479,19 @@ init_locks(void) /* ISR uses its own "giant lock" */ isr_lock = FREE_LOCK; -#ifdef SIMPLE_MPINTRLOCK s_lock_init((struct simplelock*)&mpintr_lock); -#endif - s_lock_init((struct simplelock*)&clock_lock); + s_lock_init((struct simplelock*)&fast_intr_lock); s_lock_init((struct simplelock*)&intr_lock); s_lock_init((struct simplelock*)&imen_lock); s_lock_init((struct simplelock*)&cpl_lock); + #ifdef USE_COMLOCK s_lock_init((struct simplelock*)&com_lock); #endif /* USE_COMLOCK */ +#ifdef USE_CLOCKLOCK + s_lock_init((struct simplelock*)&clock_lock); +#endif /* USE_CLOCKLOCK */ } |