diff options
author | Steve Kondik <steve@cyngn.com> | 2015-09-20 17:11:20 -0700 |
---|---|---|
committer | Dan Pasanen <dan.pasanen@gmail.com> | 2015-09-20 21:08:56 -0500 |
commit | 6d8eb851f275b2c9acb88b67c269dfb15f9aa62d (patch) | |
tree | 4a82168270041c4e9fd1c3622b6dad65e3c5f114 | |
parent | d9816c5f24b6cd7c24baec8156069f34936c930f (diff) | |
download | android_hardware_qcom_display-cm-12.1-caf-8960.tar.gz android_hardware_qcom_display-cm-12.1-caf-8960.tar.bz2 android_hardware_qcom_display-cm-12.1-caf-8960.zip |
hwc: Set ioprio for vsync threadstable/cm-12.1-caf-8960-YOG7Dcm-12.1-caf-8960
* We're not doing this automatically anymore.
Change-Id: I0ba52fe4648938bd7a0309bc03dc439e3d906970
-rw-r--r-- | libhwcomposer/hwc_vsync.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libhwcomposer/hwc_vsync.cpp b/libhwcomposer/hwc_vsync.cpp index 5d2db8644..01b259060 100644 --- a/libhwcomposer/hwc_vsync.cpp +++ b/libhwcomposer/hwc_vsync.cpp @@ -19,6 +19,7 @@ */ #include <cutils/properties.h> +#include <cutils/iosched_policy.h> #include <utils/Log.h> #include <fcntl.h> #include <sys/ioctl.h> @@ -59,6 +60,7 @@ static void *vsync_loop(void *param) prctl(PR_SET_NAME, (unsigned long) &thread_name, 0, 0, 0); androidSetThreadPriority(0, HAL_PRIORITY_URGENT_DISPLAY + android::PRIORITY_MORE_FAVORABLE); + android_set_rt_ioprio(0, 1); const int MAX_DATA = 64; static char vdata[MAX_DATA]; |