power: android-battery: push uevent whenever charge source changes
authorTodd Poynor <toddpoynor@google.com>
Wed, 13 Feb 2013 04:47:48 +0000 (20:47 -0800)
committerArve Hjønnevåg <arve@android.com>
Mon, 1 Jul 2013 21:16:20 +0000 (14:16 -0700)
commit2d54003046ef0435fc1e85329ea5a34da22b8ab3
treeb2fd8fe84f3263456e4b3d73849c2934e58d38f1
parentfd08bc44aaa638cc2e624e6d98420c96867543de
power: android-battery: push uevent whenever charge source changes

Ensure userspace reads an up-to-date value for charging status whenever the
charge source is updated.  Avoid races where stale charging state may be
reflected in userspace until the next battery state poll.

Change-Id: Ia744db48584e9e9abf442710c279af9e3a25c079
Signed-off-by: Todd Poynor <toddpoynor@google.com>
drivers/power/android_battery.c