ART: add libprocessgroup dependency and fix sched_policy include
Because art is using set_sched_policy which is moved into libprocessgroup
an additional dependency is added and header file change is made.
Bug: 111307099
Test: builds, boots
Merged-In: If23739013092361fd9f2f4a99cca617516ae06f3
Change-Id: If23739013092361fd9f2f4a99cca617516ae06f3
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"