DO NOT MERGE: Revert "Revert "ART: add libprocessgroup dependency and fix sched_policy include""
This reverts commit b3eff8aff1031b0c3f55f16dfe1d1b4f4b84a6ae.
Reason for revert: AOSP is fixed with new vendor image
Change-Id: I77df2e1e8400a1936d5a7529847b9da2a902471a
Signed-off-by: Suren Baghdasaryan <surenb@google.com>
diff --git a/runtime/Android.bp b/runtime/Android.bp
index b89eb02..a3081e9 100644
--- a/runtime/Android.bp
+++ b/runtime/Android.bp
@@ -396,8 +396,10 @@
"libnativeloader",
"libbacktrace",
"liblog",
- // For atrace, properties, ashmem, set_sched_policy.
+ // For atrace, properties, ashmem.
"libcutils",
+ // For set_sched_policy.
+ "libprocessgroup",
// For common macros.
"libbase",
],
diff --git a/runtime/thread_android.cc b/runtime/thread_android.cc
index 8ff6c52..24864f9 100644
--- a/runtime/thread_android.cc
+++ b/runtime/thread_android.cc
@@ -21,7 +21,7 @@
#include <sys/resource.h>
#include <sys/time.h>
-#include <cutils/sched_policy.h>
+#include <processgroup/sched_policy.h>
#include <utils/threads.h>
#include "base/macros.h"