diff options
author | Zoran Markovic <[email protected]> | 2013-08-02 13:38:02 -0700 |
---|---|---|
committer | Anton Vorontsov <[email protected]> | 2013-08-27 18:42:48 -0700 |
commit | 948dcf96622814d2a850a12851d27824530a9747 (patch) | |
tree | 8008f2495a9ce1da410bb94fe1231c6503b01236 /tools/perf/util/scripting-engines/trace-event-python.c | |
parent | a2c0206ad6a32b9f7287c87f20060ba59222f3b3 (diff) |
power_supply: Prevent suspend until power supply events are processed
This patch, originally authored by Arve Hjonnevag and Todd Poynor,
prevents the system from entering suspend mode until the power supply
plug, unplug, or any other change of state event is fully processed. This
guarantees that the screen lights up and displays the battery charging
state. The implementation uses the power supply wakeup_source object.
Cc: David Woodhouse <[email protected]>
Cc: Arve Hjonnevag <[email protected]>
Cc: Todd Poynor <[email protected]>
Cc: John Stultz <[email protected]>
Signed-off-by: Zoran Markovic <[email protected]>
Signed-off-by: Anton Vorontsov <[email protected]>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions