summaryrefslogtreecommitdiffstats
path: root/services/surfaceflinger/SurfaceFlinger.cpp
diff options
context:
space:
mode:
authorSteve Kondik <steve@cyngn.com>2015-09-20 04:20:21 -0700
committerSteve Kondik <steve@cyngn.com>2015-10-17 13:51:11 -0700
commitccf7c200ce5c805ccfe730b4c4cae2d1a6f5d0a1 (patch)
treebef85c47995e53ac434088754905a3a745006dd8 /services/surfaceflinger/SurfaceFlinger.cpp
parent80216f64421bc6bf19a6847e76fa122303f7a752 (diff)
downloadframeworks_native-ccf7c200ce5c805ccfe730b4c4cae2d1a6f5d0a1.zip
frameworks_native-ccf7c200ce5c805ccfe730b4c4cae2d1a6f5d0a1.tar.gz
frameworks_native-ccf7c200ce5c805ccfe730b4c4cae2d1a6f5d0a1.tar.bz2
input: Adjust priority
* Bring into the desired group to get the best result. Change-Id: I3bd031074cd7006994736b4c22d0294b6012f662
Diffstat (limited to 'services/surfaceflinger/SurfaceFlinger.cpp')
-rw-r--r--services/surfaceflinger/SurfaceFlinger.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/services/surfaceflinger/SurfaceFlinger.cpp b/services/surfaceflinger/SurfaceFlinger.cpp
index 8e92812..08769c9 100644
--- a/services/surfaceflinger/SurfaceFlinger.cpp
+++ b/services/surfaceflinger/SurfaceFlinger.cpp
@@ -27,6 +27,7 @@
#include <EGL/egl.h>
#include <cutils/log.h>
+#include <cutils/iosched_policy.h>
#include <cutils/properties.h>
#include <binder/IPCThreadState.h>
@@ -512,6 +513,7 @@ void SurfaceFlinger::init() {
mEventControlThread = new EventControlThread(this);
mEventControlThread->run("EventControl", PRIORITY_URGENT_DISPLAY);
+ android_set_rt_ioprio(mEventControlThread->getTid(), 1);
// set a fake vsync period if there is no HWComposer
if (mHwc->initCheck() != NO_ERROR) {