diff options
author | Shilin Victor <chrono.monochrome@gmail.com> | 2018-11-14 12:11:34 +0300 |
---|---|---|
committer | Shilin Victor <chrono.monochrome@gmail.com> | 2019-02-23 16:51:46 +0300 |
commit | 8a34494a9e54f596a7228829daf01cd6cf21299d (patch) | |
tree | b681465791eebed7da079daf88b096034bfbd393 /exynos4 | |
parent | c8eeb5fdc131dc744a3147f5dd039ee289d57fc9 (diff) | |
download | hardware_samsung-8a34494a9e54f596a7228829daf01cd6cf21299d.tar.gz hardware_samsung-8a34494a9e54f596a7228829daf01cd6cf21299d.tar.bz2 hardware_samsung-8a34494a9e54f596a7228829daf01cd6cf21299d.zip |
hwc: Set ioprio for vsync thread
This reverts commit e334ed34ddf504921195161d2230a3b4156d9a43.
Change-Id: Iceba230b667c0a4c480301bf5d662a9cf82b6df3
Diffstat (limited to 'exynos4')
-rw-r--r-- | exynos4/hal/libhwc/hwcomposer_vsync.cpp | 2 |
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)); |