summaryrefslogtreecommitdiffstats
path: root/exynos4
diff options
context:
space:
mode:
Diffstat (limited to 'exynos4')
-rw-r--r--exynos4/hal/libhwc/hwcomposer_vsync.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/exynos4/hal/libhwc/hwcomposer_vsync.cpp b/exynos4/hal/libhwc/hwcomposer_vsync.cpp
index b17a227..0087e5c 100644
--- a/exynos4/hal/libhwc/hwcomposer_vsync.cpp
+++ b/exynos4/hal/libhwc/hwcomposer_vsync.cpp
@@ -17,6 +17,7 @@
#include "hwcomposer.h"
#include "hwcomposer_vsync.h"
+#include <cutils/iosched_policy.h>
#include <cutils/threads.h>
#include <utils/threads.h>
@@ -46,6 +47,7 @@ static void *hwc_vsync_thread(void *data)
char thread_name[64] = HWC_VSYNC_THREAD_NAME;
prctl(PR_SET_NAME, (unsigned long) &thread_name, 0, 0, 0);
androidSetThreadPriority(0, HAL_PRIORITY_URGENT_DISPLAY);
+ android_set_ioprio(0, IoSchedClass_RT, 1);
memset(buf, 0, sizeof(buf));