Simple patch to acpi_ibm

John Baldwin jhb at FreeBSD.org
Thu Sep 24 14:24:36 UTC 2009


Can someone with acpi_ibm(4) test that this patch works ok and removes the LOR 
between acpi_ibm and the sysctl lock on HEAD or 8 with WITNESS enabled?

Index: acpi_ibm.c
===================================================================
--- acpi_ibm.c	(revision 197430)
+++ acpi_ibm.c	(working copy)
@@ -356,8 +356,6 @@
 	}
 	sc->ec_handle = acpi_get_handle(sc->ec_dev);
 
-	ACPI_SERIAL_BEGIN(ibm);
-
 	/* Get the sysctl tree */
 	sc->sysctl_ctx = device_get_sysctl_ctx(dev);
 	sc->sysctl_tree = device_get_sysctl_tree(dev);
@@ -404,8 +402,6 @@
 		    "Thermal zones");
 	}
 
-	ACPI_SERIAL_END(ibm);
-
 	/* Handle notifies */
 	AcpiInstallNotifyHandler(sc->handle, ACPI_DEVICE_NOTIFY,
 	    acpi_ibm_notify, dev);


-- 
John Baldwin


More information about the freebsd-acpi mailing list