alsactl: avoid needless wakeups in monitor loop.
diff mbox series

Message ID 20191015043802.23619-1-zev@bewilderbeest.net
State New
Headers show
Series
  • alsactl: avoid needless wakeups in monitor loop.
Related show

Commit Message

Zev Weiss Oct. 15, 2019, 4:38 a.m. UTC
The timeout wasn't really being used for anything; disabling it should
reduce idle energy consumption slightly.

Signed-off-by: Zev Weiss <zev@bewilderbeest.net>
---
 alsactl/monitor.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch
diff mbox series

diff --git a/alsactl/monitor.c b/alsactl/monitor.c
index 6b090e4f5c92..6d9328d899a4 100644
--- a/alsactl/monitor.c
+++ b/alsactl/monitor.c
@@ -340,7 +340,7 @@  static int run_dispatcher(int epfd, int sigfd, int infd, struct list_head *srcs,
 		int count;
 		int i;
 
-		count = epoll_wait(epfd, epev, max_ev_count, 200);
+		count = epoll_wait(epfd, epev, max_ev_count, -1);
 		if (count < 0) {
 			err = count;
 			break;