EventHub code cleanup.

Use epoll_wait() instead of poll().
Dropped all support for non-Linux platforms.
Added a wake-up protocol so that the InputReader can wake up
the event loop immediately as needed.

Change-Id: Ibf84337bcceb3c2df068c5c637de42a319786d66
diff --git a/services/input/InputReader.cpp b/services/input/InputReader.cpp
index 15bb300..2b61570 100644
--- a/services/input/InputReader.cpp
+++ b/services/input/InputReader.cpp
@@ -488,7 +488,7 @@
     mEventHub->setExcludedDevices(mConfig.excludedDeviceNames);
 
     if (!firstTime) {
-        mEventHub->reopenDevices();
+        mEventHub->requestReopenDevices();
     }
 }
 
@@ -711,6 +711,8 @@
 
 void InputReader::refreshConfiguration() {
     android_atomic_release_store(1, &mRefreshConfiguration);
+
+    mEventHub->wake();
 }
 
 void InputReader::dump(String8& dump) {