Skip to content
Commit 39571696 authored by Andy Whitcroft's avatar Andy Whitcroft
Browse files

UBUNTU: SAUCE: acpi battery -- delay first lookup of the battery until first use



When instantiating the battery object on to the acpi bus in the kernel
we talk to the BIOS to get the current battery state.  This can take
a long time and holds the acpi bus object locked for the duration.
This leads to any other object wishing to add itself that bus blocking.
This leads to unpredicatable delays of up to .3s when initialising the
hpet during boot depending on execution order.  It does not appear to be
necessary to inspect the actual battery until we first want the data.
Mark the battery as requiring update and continue.

Signed-off-by: default avatarAndy Whitcroft <apw@canonical.com>
parent 2236e331
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