diff options
author | Lan Tianyu <tianyu.lan@intel.com> | 2014-05-04 14:07:06 +0800 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2014-05-16 16:34:17 +0200 |
commit | 9e50bc14a7f58b5d8a55973b2d69355852ae2dae (patch) | |
tree | 446e2a10b2c6a1420914f69cd44ec8de2a55fd9f /kernel/smpboot.h | |
parent | 054c1c45395175ad057487d456668b83d51856ec (diff) | |
download | op-kernel-dev-9e50bc14a7f58b5d8a55973b2d69355852ae2dae.zip op-kernel-dev-9e50bc14a7f58b5d8a55973b2d69355852ae2dae.tar.gz |
ACPI / battery: Accelerate battery resume callback
Most time of battery resume callback is spent on executing AML code
_BTP, _BIF and _BIF to get battery info, status and set alarm. These
AML methods may access EC operation regions several times and consumes
time.
These operations are not necessary during devices resume and can run
during POST_SUSPEND/HIBERNATION event when all processes are thawed.
This also can avoid removing and adding battery sysfs nodes every system
resume even if the battery unit is not actually changed. The original code
updates sysfs nodes without check and this seems not reasonable.
Signed-off-by: Lan Tianyu <tianyu.lan@intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'kernel/smpboot.h')
0 files changed, 0 insertions, 0 deletions