Files
linux-apfs/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
..
2007-02-02 21:14:31 -05:00
2007-02-16 22:10:32 -05:00
2007-02-16 22:11:57 -05:00
2007-02-12 22:42:12 -05:00
2007-02-12 22:42:12 -05:00
2007-02-16 22:10:32 -05:00
2007-02-12 22:42:12 -05:00
2007-02-16 22:10:32 -05:00
2006-07-01 16:36:14 -04:00
2007-03-01 14:53:38 -08:00
2007-02-16 22:11:02 -05:00
2007-02-16 22:11:50 -05:00
2007-02-16 22:12:04 -05:00
2007-02-16 22:10:32 -05:00
2007-02-12 22:42:12 -05:00