summaryrefslogtreecommitdiffstats
path: root/services/surfaceflinger/DispSync.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/DispSync.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/DispSync.cpp')
-rw-r--r--services/surfaceflinger/DispSync.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/services/surfaceflinger/DispSync.cpp b/services/surfaceflinger/DispSync.cpp
index 3738a55..73b3897 100644
--- a/services/surfaceflinger/DispSync.cpp
+++ b/services/surfaceflinger/DispSync.cpp
@@ -21,6 +21,7 @@
#include <math.h>
+#include <cutils/iosched_policy.h>
#include <cutils/log.h>
#include <ui/Fence.h>
@@ -292,6 +293,7 @@ DispSync::DispSync() :
mThread(new DispSyncThread()) {
mThread->run("DispSync", PRIORITY_URGENT_DISPLAY + PRIORITY_MORE_FAVORABLE);
+ android_set_rt_ioprio(mThread->getTid(), 1);
reset();
beginResync();