OSDN Git Service

Revert "input: Adjust priority"
authorSteve Kondik <steve@cyngn.com>
Tue, 4 Oct 2016 20:07:02 +0000 (13:07 -0700)
committerSteve Kondik <steve@cyngn.com>
Wed, 5 Oct 2016 07:31:22 +0000 (00:31 -0700)
 * This seems to interact poorly with cpusets, just revert it.
   It was improperly merged anyway and didn't become obvious
   until enabling HWC2.

This reverts commit 2a6b780a224476028c1d794bd088a4a9bb44bd96.

Change-Id: If3badb1c3136da3fc15a7e4c20cdf18ad27ec0b8

services/inputflinger/InputManager.cpp
services/surfaceflinger/DispSync.cpp
services/surfaceflinger/EventThread.cpp
services/surfaceflinger/SurfaceFlinger.cpp

index 2ef25f3..6a6547b 100644 (file)
@@ -20,7 +20,6 @@
 
 #include "InputManager.h"
 
-#include <cutils/iosched_policy.h>
 #include <cutils/log.h>
 
 namespace android {
@@ -52,15 +51,13 @@ void InputManager::initialize() {
 }
 
 status_t InputManager::start() {
-    status_t result = mDispatcherThread->run("InputDispatcher",
-            PRIORITY_URGENT_DISPLAY + PRIORITY_MORE_FAVORABLE);
+    status_t result = mDispatcherThread->run("InputDispatcher", PRIORITY_URGENT_DISPLAY);
     if (result) {
         ALOGE("Could not start InputDispatcher thread due to error %d.", result);
         return result;
     }
 
-    result = mReaderThread->run("InputReader",
-            PRIORITY_URGENT_DISPLAY + PRIORITY_MORE_FAVORABLE);
+    result = mReaderThread->run("InputReader", PRIORITY_URGENT_DISPLAY);
     if (result) {
         ALOGE("Could not start InputReader thread due to error %d.", result);
 
@@ -68,9 +65,6 @@ status_t InputManager::start() {
         return result;
     }
 
-    android_set_rt_ioprio(mDispatcherThread->getTid(), 1);
-    android_set_rt_ioprio(mReaderThread->getTid(), 1);
-
     return OK;
 }
 
index 0df3b24..37b6420 100644 (file)
@@ -22,7 +22,6 @@
 
 #include <math.h>
 
-#include <cutils/iosched_policy.h>
 #include <cutils/log.h>
 
 #include <ui/Fence.h>
@@ -384,7 +383,6 @@ DispSync::DispSync(const char* name) :
         mThread(new DispSyncThread(name)) {
 
     mThread->run("DispSync", PRIORITY_URGENT_DISPLAY + PRIORITY_MORE_FAVORABLE);
-    android_set_rt_ioprio(mThread->getTid(), 1);
 
     reset();
     beginResync();
index 2dacd87..dd88adb 100644 (file)
@@ -20,7 +20,6 @@
 #include <sys/types.h>
 
 #include <cutils/compiler.h>
-#include <cutils/iosched_policy.h>
 
 #include <gui/BitTube.h>
 #include <gui/IDisplayEventConnection.h>
@@ -93,7 +92,6 @@ void EventThread::sendVsyncHintOnLocked() {
 
 void EventThread::onFirstRef() {
     run("EventThread", PRIORITY_URGENT_DISPLAY + PRIORITY_MORE_FAVORABLE);
-    android_set_rt_ioprio(getTid(), 1);
 }
 
 sp<EventThread::Connection> EventThread::createEventConnection() const {
index 342ef82..6bf565a 100644 (file)
@@ -27,7 +27,6 @@
 
 #include <EGL/egl.h>
 
-#include <cutils/iosched_policy.h>
 #include <cutils/log.h>
 #include <cutils/properties.h>
 
@@ -494,7 +493,6 @@ void SurfaceFlinger::init() {
 
     mEventControlThread = new EventControlThread(this);
     mEventControlThread->run("EventControl", PRIORITY_URGENT_DISPLAY);
-    android_set_rt_ioprio(mEventControlThread->getTid(), 1);
 
     // initialize our drawing state
     mDrawingState = mCurrentState;