linux/drivers/acpi
Vladimir Lebedev b6ce4083ed ACPI: Cache battery status instead of re-evaluating AML
/proc exports _BST in a single file, and _BST is re-evaulated
whenever that file is read.

Sometimes user-space reads this file frequently, and on some
systems _BST takes a long time to evaluate due to a slow EC.

Further, when we move to sysfs, the values returned from _BST
will be in multiple files, and evaluating _BST for each
file read would make matters worse.

Here code is added to support caching the results of _BST.
A new module parameter "update_time" tells how many seconds the
cached _BST should be used before it is re-evaluated.
Currently, update_time defaults to 0, and so the
existing behaviour of re-evaluating on each read retained.

Signed-off-by: Vladimir Lebedev <vladimir.p.lebedev@intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>
2007-03-07 01:48:07 -05:00
..
dispatcher ACPICA: fix AML mutex re-entrancy 2007-02-15 16:13:16 -05:00
events Pull bugzilla-5534 into release branch 2007-02-16 22:11:21 -05:00
executer ACPICA: fix AML mutex re-entrancy 2007-02-15 16:13:16 -05:00
hardware ACPI: Disable GPEs in preparation for sleep. 2007-02-10 01:30:35 -05:00
namespace [PATCH] x86: fix laptop bootup hang in init_acpi() 2007-02-13 13:26:24 +01:00
parser ACPICA: Update copyright to 2007. 2007-02-02 21:14:31 -05:00
resources ACPICA: Update copyright to 2007. 2007-02-02 21:14:31 -05:00
sleep Pull bugzilla-7887 into release branch 2007-02-16 22:11:57 -05:00
tables ACPI: acpi_unload_table_id() always returns error 2007-02-16 18:34:40 -05:00
utilities ACPICA: fix AML mutex re-entrancy 2007-02-15 16:13:16 -05:00
ac.c ACPI: delete extra #defines in /drivers/acpi/ drivers 2007-02-12 23:50:52 -05:00
acpi_memhotplug.c ACPI: delete extra #defines in /drivers/acpi/ drivers 2007-02-12 23:50:52 -05:00
asus_acpi.c backlight: Separate backlight properties from backlight ops pointers 2007-02-20 09:26:53 +00:00
battery.c ACPI: Cache battery status instead of re-evaluating AML 2007-03-07 01:48:07 -05:00
bay.c Pull fluff into release branch 2007-02-16 22:10:32 -05:00
blacklist.c ACPICA: Miscellaneous table manager updates and optimizations 2007-02-02 21:14:29 -05:00
bus.c Pull bugzilla-7887 into release branch 2007-02-16 22:11:57 -05:00
button.c ACPI: delete extra #defines in /drivers/acpi/ drivers 2007-02-12 23:50:52 -05:00
cm_sbs.c ACPI: clean up ACPI_MODULE_NAME() use 2007-02-12 22:42:12 -05:00
container.c ACPI: delete extra #defines in /drivers/acpi/ drivers 2007-02-12 23:50:52 -05:00
debug.c ACPI: clean up ACPI_MODULE_NAME() use 2007-02-12 22:42:12 -05:00
dock.c ACPI: delete extra #defines in /drivers/acpi/ drivers 2007-02-12 23:50:52 -05:00
ec.c Pull fluff into release branch 2007-02-16 22:10:32 -05:00
event.c ACPI: clean up ACPI_MODULE_NAME() use 2007-02-12 22:42:12 -05:00
fan.c ACPI: delete extra #defines in /drivers/acpi/ drivers 2007-02-12 23:50:52 -05:00
glue.c ACPI: remove non-PNPACPI version of get_rtc_dev() 2007-02-15 22:46:42 -05:00
i2c_ec.c Pull fluff into release branch 2007-02-16 22:10:32 -05:00
i2c_ec.h ACPI: add support for Smart Battery 2006-07-01 16:36:14 -04:00
ibm_acpi.c backlight: Separate backlight properties from backlight ops pointers 2007-02-20 09:26:53 +00:00
Kconfig [PATCH] ACPI: make bay depend on dock 2007-03-01 14:53:38 -08:00
Makefile ACPI: hotkey: remove driver, per feature-removal-schedule.txt 2007-02-16 21:45:57 -05:00
numa.c ACPI: acpi_table_parse_madt_family() is not MADT specific 2007-02-13 02:58:52 -05:00
osl.c Pull remove-hotkey into release branch 2007-02-16 22:11:02 -05:00
pci_bind.c ACPI: clean up ACPI_MODULE_NAME() use 2007-02-12 22:42:12 -05:00
pci_irq.c ACPI: clean up ACPI_MODULE_NAME() use 2007-02-12 22:42:12 -05:00
pci_link.c ACPI: delete extra #defines in /drivers/acpi/ drivers 2007-02-12 23:50:52 -05:00
pci_root.c ACPI: delete extra #defines in /drivers/acpi/ drivers 2007-02-12 23:50:52 -05:00
power.c Pull bugzilla-7570 into release branch 2007-02-16 22:11:50 -05:00
processor_core.c Pull fluff into release branch 2007-02-16 22:10:32 -05:00
processor_idle.c Pull fluff into release branch 2007-02-16 22:10:32 -05:00
processor_perflib.c ACPI: delete extra #defines in /drivers/acpi/ drivers 2007-02-12 23:50:52 -05:00
processor_thermal.c ACPI: delete extra #defines in /drivers/acpi/ drivers 2007-02-12 23:50:52 -05:00
processor_throttling.c ACPI: delete extra #defines in /drivers/acpi/ drivers 2007-02-12 23:50:52 -05:00
sbs.c Pull bugzilla-7897 into release branch 2007-02-16 22:12:04 -05:00
scan.c ACPI: delete extra #defines in /drivers/acpi/ drivers 2007-02-12 23:50:52 -05:00
system.c ACPI: delete extra #defines in /drivers/acpi/ drivers 2007-02-12 23:50:52 -05:00
tables.c Pull fluff into release branch 2007-02-16 22:10:32 -05:00
thermal.c Pull bugzilla-7570 into release branch 2007-02-16 22:11:50 -05:00
toshiba_acpi.c backlight: Separate backlight properties from backlight ops pointers 2007-02-20 09:26:53 +00:00
utils.c ACPI: clean up ACPI_MODULE_NAME() use 2007-02-12 22:42:12 -05:00
video.c backlight: Separate backlight properties from backlight ops pointers 2007-02-20 09:26:53 +00:00