From 5cae4392b47e9a603967eea216077d8a12d01844 Mon Sep 17 00:00:00 2001 From: Firefly Date: Tue, 18 Aug 2015 10:33:56 +0800 Subject: [PATCH] [system/core] healthd: remove EPOLLWAKEUP flag for epoll events kernel will send wakeup events before enter suspend mode if EPOLLWAKEUP flag set, this will prevent the system from suspending Signed-off-by: Firefly --- system/core/healthd/healthd.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/system/core/healthd/healthd.cpp b/system/core/healthd/healthd.cpp index cb76e44cd5..8ec889214d 100644 --- a/system/core/healthd/healthd.cpp +++ b/system/core/healthd/healthd.cpp @@ -138,7 +138,7 @@ static void healthd_mode_nop_battery_update( int healthd_register_event(int fd, void (*handler)(uint32_t)) { struct epoll_event ev; - ev.events = EPOLLIN | EPOLLWAKEUP; + ev.events = EPOLLIN; ev.data.ptr = (void *)handler; if (epoll_ctl(epollfd, EPOLL_CTL_ADD, fd, &ev) == -1) { KLOG_ERROR(LOG_TAG,