aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/Perf-Trace-Util/lib/Perf
diff options
context:
space:
mode:
authorNikolaus Voss <[email protected]>2012-05-09 08:30:44 +0200
committerAnton Vorontsov <[email protected]>2012-06-19 19:26:40 -0700
commit5da50988a1bf8c05611db77521777baaca14da29 (patch)
tree4e3a7b6396b17afa1ac42e306825f6d2a0ee85c8 /tools/perf/scripts/python/Perf-Trace-Util/lib/Perf
parentab37813f4093a5f59cb8e083cde277289dc72ed3 (diff)
sbs-battery: Don't trigger false supply_changed event
power_supply_changed() events are triggerd based on the return value of a get_property() call. However the property TECHNOLOGY is hard-coded to LION in this driver, thus always succeeds. So, with the battery removed, this triggers a false battery present uevent. This uevent triggers a new query via power_supply_uevent() which again starts to query all known properties and thus leads to an infinite loop of battery present/not-present uevents. This patch skips the battery presence detection for the hard-coded property TECHNOLOGY. Signed-off-by: Nikolaus Voss <[email protected]> Acked-by Rhyland Klein <[email protected]> Signed-off-by: Anton Vorontsov <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/Perf-Trace-Util/lib/Perf')
0 files changed, 0 insertions, 0 deletions