minor acpi cleanups against 2.4.0-prerelease

From: Adam J. Richter (adam@yggdrasil.com)
Date: Mon Jan 01 2001 - 04:57:37 EST


        I have not yet isolated the problem that causes acpi to hang
on initialization on my Sony PCG-1VN PictureBook (and which Suresh
reports also occurs on a Sony Vaio F250), but in the course of
tracking down the problem, I have noticed some code that needed
to be cleaned up, so I would like to at least hit that ball out
of my court. I have attached the patch to this email.

        The changes are as follows:
                o namesapce/nsxfobj.c: acpi_ns_get_device_callback
                  had two identical calls to acpi_cm_release_mutex,
                  each of which was the first statement executed
                  depending on the result of an if statement, and
                  the condition being evaluated did not need the lock.
                  This folds the acpi_cm_release_mutex calls into a single
                  one before the if.

                o namespace/nseval.c: acpi_ns_evaluate_by_handle
                  had a goto target that was only reachable from one
                  point in the code. Moving the target code to where
                  the goto used to be further simplified it.

                o BUG: namespace/nseval.c: acpi_ns_execute_control_method
                  would not would return without releasing the
                  ACPI_MTX_NAMESPACE mutex if acpi_ns_get_attached_obect
                  returned NULL.

-- 
Adam J. Richter     __     ______________   4880 Stevens Creek Blvd, Suite 104
adam@yggdrasil.com     \ /                  San Jose, California 95129-1034
+1 408 261-6630         | g g d r a s i l   United States of America
fax +1 408 261-6631      "Free Software For The Rest Of Us."


- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Sun Jan 07 2001 - 21:00:11 EST