Bump allocator priority to 100 am: 72ac326207

Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/qcom/sm8150/display/+/12468464

Change-Id: I7f5d102905b7745f4f6955d6e5fc420d96aa2998
diff --git a/gralloc/service.cpp b/gralloc/service.cpp
index 7ea1e3a..1ef8fec 100644
--- a/gralloc/service.cpp
+++ b/gralloc/service.cpp
@@ -31,12 +31,16 @@
 
 using android::hardware::configureRpcThreadpool;
 using android::hardware::joinRpcThreadpool;
+using android::hardware::setMinSchedulerPolicy;
 using vendor::qti::hardware::display::allocator::V3_0::IQtiAllocator;
 using vendor::qti::hardware::display::allocator::V3_0::implementation::QtiAllocator;
 
 int main(int, char **) {
   android::sp<IQtiAllocator> service = new QtiAllocator();
   configureRpcThreadpool(4, true /*callerWillJoin*/);
+  if (!setMinSchedulerPolicy(service, SCHED_NORMAL, -20)) {
+    ALOGW("Cannot bump allocator priority");
+  }
   if (service->registerAsService() != android::OK) {
     ALOGE("Cannot register QTI Allocator service");
     return -EINVAL;