summaryrefslogtreecommitdiffstats
path: root/sys/i386/isa/ipl_funcs.c
diff options
context:
space:
mode:
authoralc <alc@FreeBSD.org>1999-07-20 06:09:53 +0000
committeralc <alc@FreeBSD.org>1999-07-20 06:09:53 +0000
commit905bcc118433dc6747bf9091a2bae04370334c34 (patch)
tree385478dc9a75f4e3e8870cfa77156b53936d80c4 /sys/i386/isa/ipl_funcs.c
parentdb0a7d40ad529f7101393e18772d932279b79520 (diff)
downloadFreeBSD-src-905bcc118433dc6747bf9091a2bae04370334c34.zip
FreeBSD-src-905bcc118433dc6747bf9091a2bae04370334c34.tar.gz
An SMP-specific change: Eliminate an unnecessary lock acquire and release
in setdelayed. Submitted by: luoqi and bde
Diffstat (limited to 'sys/i386/isa/ipl_funcs.c')
-rw-r--r--sys/i386/isa/ipl_funcs.c11
1 files changed, 1 insertions, 10 deletions
diff --git a/sys/i386/isa/ipl_funcs.c b/sys/i386/isa/ipl_funcs.c
index 3b0b493..8f38f52 100644
--- a/sys/i386/isa/ipl_funcs.c
+++ b/sys/i386/isa/ipl_funcs.c
@@ -23,7 +23,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: ipl_funcs.c,v 1.25 1999/07/12 07:22:08 phk Exp $
+ * $Id: ipl_funcs.c,v 1.26 1999/07/17 18:34:32 alc Exp $
*/
#include <sys/types.h>
@@ -44,16 +44,7 @@ void name(void) \
setbits(var, bits); \
}
-#ifndef SMP
DO_SETBITS(setdelayed, &ipending, loadandclear(&idelayed))
-#else /* !SMP */
-void setdelayed(void)
-{
- IFCPL_LOCK();
- setbits(&ipending, loadandclear(&idelayed));
- IFCPL_UNLOCK();
-}
-#endif /* !SMP */
DO_SETBITS(setsoftcamnet,&ipending, SWI_CAMNET_PENDING)
DO_SETBITS(setsoftcambio,&ipending, SWI_CAMBIO_PENDING)
OpenPOWER on IntegriCloud