From 90ff7946f67d1ec9d47c24e7901310345001985e Mon Sep 17 00:00:00 2001 From: Valera1978 Date: Fri, 6 Dec 2019 13:03:51 +0300 Subject: [PATCH] gps: Add libprocessgroup dependency Because set_sched_policy is moved into libprocessgroup an additional dependency is required for its users. Exempt-From-Owner-Approval: janitorial Bug: 111307099 Test: builds, boots Change-Id: Ie28a9feb5d4342011ca5baac8a62287aca11af3d Signed-off-by: Suren Baghdasaryan Signed-off-by: Volodymyr Zhdanov --- gps/utils/Android.mk | 3 ++- gps/utils/MsgTask.cpp | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/gps/utils/Android.mk b/gps/utils/Android.mk index 1e907d5..98c20f4 100755 --- a/gps/utils/Android.mk +++ b/gps/utils/Android.mk @@ -7,7 +7,8 @@ include $(CLEAR_VARS) LOCAL_SHARED_LIBRARIES := \ libutils \ libcutils \ - liblog + liblog \ + libprocessgroup LOCAL_SRC_FILES += \ loc_log.cpp \ diff --git a/gps/utils/MsgTask.cpp b/gps/utils/MsgTask.cpp index f98b968..eaead5c 100755 --- a/gps/utils/MsgTask.cpp +++ b/gps/utils/MsgTask.cpp @@ -83,7 +83,7 @@ void MsgTask::sendMsg(const LocMsg* msg) const { void MsgTask::prerun() { // make sure we do not run in background scheduling group -// set_sched_policy(gettid(), SP_FOREGROUND); + set_sched_policy(gettid(), SP_FOREGROUND); } bool MsgTask::run() {