From 3910362ab807886a2a954ec78428e61875f249ac Mon Sep 17 00:00:00 2001 From: Matt Jacob Date: Wed, 25 Jul 2001 04:21:53 +0000 Subject: [PATCH] Roll minor version. Remove ISP_SMPLOCK nonsense. We're using full locking, and that's final. MFC after: 1 week --- sys/dev/isp/isp_freebsd.h | 21 ++------------------- 1 file changed, 2 insertions(+), 19 deletions(-) diff --git a/sys/dev/isp/isp_freebsd.h b/sys/dev/isp/isp_freebsd.h index 46b52358158..46bec0d5daf 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 #include @@ -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",