]> git.baikalelectronics.ru Git - kernel.git/commit
ACPI battery: only refresh the sysfs files when pertinent information changes
authorAndy Whitcroft <apw@canonical.com>
Thu, 3 May 2012 13:48:26 +0000 (14:48 +0100)
committerLen Brown <len.brown@intel.com>
Tue, 8 May 2012 05:49:57 +0000 (01:49 -0400)
commitc6bc0b1a0a0d9c2fab7d6c741ec695b3330c4367
tree6fc98ba750ce3542024f64f2de1a44ae7fe12e06
parentb3d1232156529ef685eb7155692488a986691c58
ACPI battery: only refresh the sysfs files when pertinent information changes

We only need to regenerate the sysfs files when the capacity units
change, avoid the update otherwise.

The origin of this issue is dates way back to 2.6.38:
d00f3e1c27285aca6bbde0fe27a676d82933d726
(ACPI / Battery: Update information on info notification and resume)

cc: <stable@vger.kernel.org>
Signed-off-by: Andy Whitcroft <apw@canonical.com>
Tested-by: Ralf Jung <post@ralfj.de>
Signed-off-by: Len Brown <len.brown@intel.com>
drivers/acpi/battery.c