diff options
author | Vladimir Lebedev <vladimir.p.lebedev@gmail.com> | 2007-04-21 22:41:48 -0400 |
---|---|---|
committer | Len Brown <len.brown@intel.com> | 2007-04-21 22:41:48 -0400 |
commit | 6eedeef73e7fff32eb5fa25178c3c77b1db0ec0f (patch) | |
tree | 0f142368daa360163d8d8eb6a420efbde7141d6e /drivers/acpi/battery.c | |
parent | 9ea7d57576f40c6af03c8c9fa7a069f2222b498b (diff) |
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>
Diffstat (limited to 'drivers/acpi/battery.c')
-rw-r--r-- | drivers/acpi/battery.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/acpi/battery.c b/drivers/acpi/battery.c index fc9c50ab5219..b5df318978ed 100644 --- a/drivers/acpi/battery.c +++ b/drivers/acpi/battery.c | |||
@@ -937,10 +937,8 @@ static void acpi_battery_notify(acpi_handle handle, u32 event, void *data) | |||
937 | case ACPI_BATTERY_NOTIFY_INFO: | 937 | case ACPI_BATTERY_NOTIFY_INFO: |
938 | case ACPI_NOTIFY_BUS_CHECK: | 938 | case ACPI_NOTIFY_BUS_CHECK: |
939 | case ACPI_NOTIFY_DEVICE_CHECK: | 939 | case ACPI_NOTIFY_DEVICE_CHECK: |
940 | acpi_battery_mutex_lock(battery); | ||
941 | device = battery->device; | 940 | device = battery->device; |
942 | acpi_battery_notify_update(battery); | 941 | acpi_battery_notify_update(battery); |
943 | acpi_battery_mutex_unlock(battery); | ||
944 | acpi_bus_generate_event(device, event, | 942 | acpi_bus_generate_event(device, event, |
945 | acpi_battery_present(battery)); | 943 | acpi_battery_present(battery)); |
946 | break; | 944 | break; |