summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormjacob <mjacob@FreeBSD.org>2001-07-25 04:21:53 +0000
committermjacob <mjacob@FreeBSD.org>2001-07-25 04:21:53 +0000
commit38c4c60810c0976813392c7da16c5da3251b9e38 (patch)
treec84abac2ff175a52d9e066e5483d32bc847a26f8
parent6cfdb0f461ecaf5ada0fafd204e60c5a5cb3e341 (diff)
downloadFreeBSD-src-38c4c60810c0976813392c7da16c5da3251b9e38.zip
FreeBSD-src-38c4c60810c0976813392c7da16c5da3251b9e38.tar.gz
Roll minor version. Remove ISP_SMPLOCK nonsense. We're using full locking,
and that's final. MFC after: 1 week
-rw-r--r--sys/dev/isp/isp_freebsd.h21
1 files changed, 2 insertions, 19 deletions
diff --git a/sys/dev/isp/isp_freebsd.h b/sys/dev/isp/isp_freebsd.h
index 46b5235..46bec0d 100644
--- a/sys/dev/isp/isp_freebsd.h
+++ b/sys/dev/isp/isp_freebsd.h
@@ -1,6 +1,6 @@
/* $FreeBSD$ */
/*
- * Qlogic ISP SCSI Host Adapter FreeBSD Wrapper Definitions (CAM version)
+ * Qlogic ISP SCSI Host Adapter FreeBSD Wrapper Definitions
* Copyright (c) 1997, 1998, 1999, 2000, 2001 by Matthew Jacob
*
* Redistribution and use in source and binary forms, with or without
@@ -28,12 +28,7 @@
#define _ISP_FREEBSD_H
#define ISP_PLATFORM_VERSION_MAJOR 5
-#define ISP_PLATFORM_VERSION_MINOR 8
-
-/*
- * We're not ready for primetime yet
- */
-#define ISP_SMPLOCK 1
+#define ISP_PLATFORM_VERSION_MINOR 9
#include <sys/param.h>
#include <sys/param.h>
@@ -123,19 +118,12 @@ struct isposinfo {
* Locking macros...
*/
-#ifdef ISP_SMPLOCK
#define ISP_LOCK(x) mtx_lock(&(x)->isp_lock)
#define ISP_UNLOCK(x) mtx_unlock(&(x)->isp_lock)
#define ISPLOCK_2_CAMLOCK(isp) \
mtx_unlock(&(isp)->isp_lock); mtx_lock(&Giant)
#define CAMLOCK_2_ISPLOCK(isp) \
mtx_unlock(&Giant); mtx_lock(&(isp)->isp_lock)
-#else
-#define ISP_LOCK(x)
-#define ISP_UNLOCK(x)
-#define ISPLOCK_2_CAMLOCK(x)
-#define CAMLOCK_2_ISPLOCK(x)
-#endif
/*
* Required Macros/Defines
@@ -328,13 +316,8 @@ isp_mbox_wait_complete(struct ispsoftc *isp)
{
if (isp->isp_osinfo.intsok) {
isp->isp_osinfo.mboxwaiting = 1;
-#ifdef ISP_SMPLOCK
(void) msleep(&isp->isp_osinfo.mboxwaiting,
&isp->isp_lock, PRIBIO, "isp_mboxwaiting", 10 * hz);
-#else
- (void) tsleep(&isp->isp_osinfo.mboxwaiting, PRIBIO,
- "isp_mboxwaiting", 10 * hz);
-#endif
if (isp->isp_mboxbsy != 0) {
isp_prt(isp, ISP_LOGWARN,
"Interrupting Mailbox Command (0x%x) Timeout",
OpenPOWER on IntegriCloud