summaryrefslogtreecommitdiff
path: root/utils/MsgTask.cpp
diff options
context:
space:
mode:
authorMike Cailean <mcailean@codeaurora.org>2018-12-13 10:08:18 -0800
committerGerrit - the friendly Code Review server <code-review@localhost>2019-02-07 11:13:58 -0800
commitdc0efb480067db854d27ef439c1fb598769ba361 (patch)
treeb7d82b3aed9615d95e9abf4c16795e4b06c0dc5f /utils/MsgTask.cpp
parent9d6d95d09650ea9ada4771f00f1991b7a5f2cc91 (diff)
Enable support for External AP build
Enable support for build on External AP without libcutils or any Android library support. CRs-fixed: 2368435 Change-Id: I978127348fd6b8d90ed5ef0a714c02437dc59ee0
Diffstat (limited to 'utils/MsgTask.cpp')
-rw-r--r--utils/MsgTask.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/utils/MsgTask.cpp b/utils/MsgTask.cpp
index ad95a83..73a77fd 100644
--- a/utils/MsgTask.cpp
+++ b/utils/MsgTask.cpp
@@ -83,8 +83,10 @@ void MsgTask::sendMsg(const LocMsg* msg) const {
}
void MsgTask::prerun() {
+#ifndef FEATURE_EXTERNAL_AP
// make sure we do not run in background scheduling group
set_sched_policy(gettid(), SP_FOREGROUND);
+#endif /* FEATURE_EXTERNAL_AP */
}
bool MsgTask::run() {