Skip to content

Commit

Permalink
hwc: Set ioprio for vsync thread
Browse files Browse the repository at this point in the history
 * We're not doing this automatically anymore.

Change-Id: I0ba52fe4648938bd7a0309bc03dc439e3d906970
  • Loading branch information
Steve Kondik authored and intervigilium committed Feb 19, 2018
1 parent 109d5ba commit 8648766
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion libhwcomposer/Android.mk
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ endif
LOCAL_SHARED_LIBRARIES := $(common_libs) libEGL liboverlay \
libhdmi libqdutils libhardware_legacy \
libdl libmemalloc libqservice libsync \
libbinder libmedia libdisplayconfig
libbinder libmedia libdisplayconfig \
libbfqio_vendor

LOCAL_CFLAGS := $(common_flags) -DLOG_TAG=\"qdhwcomposer\" -Wno-absolute-value \
-Wno-float-conversion -Wno-unused-parameter
Expand Down
2 changes: 2 additions & 0 deletions libhwcomposer/hwc_vsync.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
*/

#include <cutils/properties.h>
#include <bfqio/bfqio.h>
#include <utils/Log.h>
#include <fcntl.h>
#include <sys/ioctl.h>
Expand Down Expand Up @@ -129,6 +130,7 @@ static void *vsync_loop(void *param)
prctl(PR_SET_NAME, (unsigned long) &thread_name, 0, 0, 0);
setpriority(PRIO_PROCESS, 0, HAL_PRIORITY_URGENT_DISPLAY +
android::PRIORITY_MORE_FAVORABLE);
android_set_rt_ioprio(0, 1);

char vdata[MAX_DATA];
//Number of physical displays
Expand Down

0 comments on commit 8648766

Please sign in to comment.