Commit 0fa03326 authored by Len Brown's avatar Len Brown Committed by Len Brown

[ACPI] speed up reads from /proc/acpi/ (Shaohua David Li)

http://bugme.osdl.org/show_bug.cgi?id=726
parent 6d4289d1
...@@ -360,7 +360,7 @@ acpi_battery_read_info ( ...@@ -360,7 +360,7 @@ acpi_battery_read_info (
ACPI_FUNCTION_TRACE("acpi_battery_read_info"); ACPI_FUNCTION_TRACE("acpi_battery_read_info");
if (!battery) if (!battery || (off != 0))
goto end; goto end;
if (battery->flags.present) if (battery->flags.present)
...@@ -459,7 +459,7 @@ acpi_battery_read_state ( ...@@ -459,7 +459,7 @@ acpi_battery_read_state (
ACPI_FUNCTION_TRACE("acpi_battery_read_state"); ACPI_FUNCTION_TRACE("acpi_battery_read_state");
if (!battery) if (!battery || (off != 0))
goto end; goto end;
if (battery->flags.present) if (battery->flags.present)
...@@ -543,7 +543,7 @@ acpi_battery_read_alarm ( ...@@ -543,7 +543,7 @@ acpi_battery_read_alarm (
ACPI_FUNCTION_TRACE("acpi_battery_read_alarm"); ACPI_FUNCTION_TRACE("acpi_battery_read_alarm");
if (!battery) if (!battery || (off != 0))
goto end; goto end;
if (!battery->flags.present) { if (!battery->flags.present) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment