process reading battery status hangs

http://bugzilla.kernel.org/show_bug.cgi?id=8351

Signed-off-by: Vladimir Lebedev <vladimir.p.lebedev@gmail.com>
Signed-off-by: Len Brown <len.brown@intel.com>
This commit is contained in:
Vladimir Lebedev 2007-04-21 22:41:48 -04:00 committed by Len Brown
parent 9ea7d57576
commit 6eedeef73e
1 changed files with 0 additions and 2 deletions

View File

@ -937,10 +937,8 @@ static void acpi_battery_notify(acpi_handle handle, u32 event, void *data)
case ACPI_BATTERY_NOTIFY_INFO:
case ACPI_NOTIFY_BUS_CHECK:
case ACPI_NOTIFY_DEVICE_CHECK:
acpi_battery_mutex_lock(battery);
device = battery->device;
acpi_battery_notify_update(battery);
acpi_battery_mutex_unlock(battery);
acpi_bus_generate_event(device, event,
acpi_battery_present(battery));
break;