changeset 2953:f47ccf3069f8

6469394 cpumem-diagnosis module fails to load on E6900 with Panther boards and Solaris 10 U2
author mb158278
date Fri, 20 Oct 2006 13:11:24 -0700
parents ecafc76e74a4
children b0b763bffb8e
files usr/src/uts/sun4u/io/mc-us3.c
diffstat 1 files changed, 1 insertions(+), 15 deletions(-) [+]
line wrap: on
line diff
--- a/usr/src/uts/sun4u/io/mc-us3.c	Fri Oct 20 09:12:16 2006 -0700
+++ b/usr/src/uts/sun4u/io/mc-us3.c	Fri Oct 20 13:11:24 2006 -0700
@@ -117,7 +117,6 @@
 
 static kmutex_t	mcmutex;
 static kmutex_t	mcdatamutex;
-static int mc_is_open = 0;
 
 static krwlock_t mcdimmsids_rw;
 
@@ -462,32 +461,19 @@
 static int
 mc_open(dev_t *devp, int flag, int otyp, cred_t *credp)
 {
-	int status = 0;
 
 	/* verify that otyp is appropriate */
 	if (otyp != OTYP_CHR) {
 		return (EINVAL);
 	}
 
-	mutex_enter(&mcmutex);
-	if (mc_is_open) {
-		status = EBUSY;
-		goto bad;
-	}
-	mc_is_open = 1;
-bad:
-	mutex_exit(&mcmutex);
-	return (status);
+	return (0);
 }
 
 /* ARGSUSED */
 static int
 mc_close(dev_t devp, int flag, int otyp, cred_t *credp)
 {
-	mutex_enter(&mcmutex);
-	mc_is_open = 0;
-	mutex_exit(&mcmutex);
-
 	return (0);
 }