http://bugzilla.kernel.org/show_bug.cgi?id=6634
------- Additional Comments From [EMAIL PROTECTED] 2006-05-31 22:46 ------- Specific example (from bug #6612): acpi_set_register() calls acpi_ut_acquire_mutex(ACPI_MTX_HARWARE) which calls acpi_os_wait_semaphore(). Not only is the semaphore over-kill for protecting a simple RMW to a register, but using it means that acpi_set_register() (and acpi_clear_event() which calls it) can not be called from interrupt context. Looks like ACPI_MTX_HARDWARE should be implemented with a spin-lock and accessed with spin_lock_irqsave()/spin_lock_irqrestore() -- the lowest overhead locking mechanism available in the kernel asside from atomic memory accesses themselves. ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is. _______________________________________________ acpi-bugzilla mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/acpi-bugzilla
