summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornwhitehorn <nwhitehorn@FreeBSD.org>2010-05-21 20:46:01 +0000
committernwhitehorn <nwhitehorn@FreeBSD.org>2010-05-21 20:46:01 +0000
commit4928a940d2246a848434dbe078f5a2952dde5c2e (patch)
tree1948ddd2bbe17a8b6480ce1ee8398a6b4438dbfc
parent985cb2975958bb0c8c4b61975d0244c66e0cc4bf (diff)
downloadFreeBSD-src-4928a940d2246a848434dbe078f5a2952dde5c2e.zip
FreeBSD-src-4928a940d2246a848434dbe078f5a2952dde5c2e.tar.gz
Now that single-threaded access to firmware is enforced by
IPI_RENDEZVOUS, the ofw mutex is irrelevant.
-rw-r--r--sys/powerpc/aim/ofw_machdep.c14
1 files changed, 0 insertions, 14 deletions
diff --git a/sys/powerpc/aim/ofw_machdep.c b/sys/powerpc/aim/ofw_machdep.c
index 5c65779..358afaa 100644
--- a/sys/powerpc/aim/ofw_machdep.c
+++ b/sys/powerpc/aim/ofw_machdep.c
@@ -64,8 +64,6 @@ __FBSDID("$FreeBSD$");
static struct mem_region OFmem[OFMEM_REGIONS + 1], OFavail[OFMEM_REGIONS + 3];
static struct mem_region OFfree[OFMEM_REGIONS + 3];
-static struct mtx ofw_mutex;
-
struct mem_region64 {
vm_offset_t mr_start_hi;
vm_offset_t mr_start_lo;
@@ -285,8 +283,6 @@ OF_bootstrap()
{
boolean_t status = FALSE;
- mtx_init(&ofw_mutex, "open firmware", NULL, MTX_DEF);
-
if (ofwcall != NULL) {
if (ofw_real_mode)
status = OF_install(OFW_STD_REAL, 0);
@@ -356,12 +352,6 @@ openfirmware_core(void *args)
u_int srsave[16];
u_int i;
- /*
- * NOTE: This MUST be called with the OF mutex held. Because the CPU
- * holding the lock is not necessarily the CPU running this function,
- * we can't put an assert here.
- */
-
__asm __volatile( "\t"
"sync\n\t"
"mfmsr %0\n\t"
@@ -459,8 +449,6 @@ openfirmware(void *args)
if (pmap_bootstrapped && ofw_real_mode)
args = (void *)pmap_kextract((vm_offset_t)args);
- mtx_lock(&ofw_mutex);
-
#ifdef SMP
rv_args.args = args;
rv_args.in_progress = 1;
@@ -471,8 +459,6 @@ openfirmware(void *args)
result = openfirmware_core(args);
#endif
- mtx_unlock(&ofw_mutex);
-
return (result);
}
OpenPOWER on IntegriCloud