Re: [PATCH] ACPI: battery: use cache_time as cache "enabled"

2018-07-19 Thread Rafael J. Wysocki
On Sunday, July 15, 2018 12:38:29 AM CEST Lucas Magasweran wrote: > From: Lucas Rangit Magasweran > > When battery state is not cached the module parameter cache_time is 0 > and battery->update_time starts at 0. However, it set to jiffies in > each call to acpi_battery_get_state() and should not

[PATCH] ACPI: battery: use cache_time as cache "enabled"

2018-07-14 Thread Lucas Magasweran
From: Lucas Rangit Magasweran When battery state is not cached the module parameter cache_time is 0 and battery->update_time starts at 0. However, it set to jiffies in each call to acpi_battery_get_state() and should not be used to determine if a cache time is used. Using battery->update_time ca