Commit 58a677b1 authored by Eric Holmberg's avatar Eric Holmberg
Browse files

tty: smux_ctl: Add support for poll method.



Userspace clients hold a wakelock while calling read.  If data isn't
available, read() blocks preventing the release of the wakelock and
preventing the system from going into low power mode.

Implement poll() method to enable clients to call poll() to block and
wait for data without a wakelock.  Once poll() returns, then a wakelock
can be acquired and read() called without blocking which allows
minimizing the time a wakelock is held.

CRs-fixed: 379519
Change-Id: Icea23783ee2d03e2beac81bdb1b735e4edfd1d22
Signed-off-by: default avatarEric Holmberg <eholmber@codeaurora.org>
parent 391b3d22
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment