Don't set cgroup policy when updating cpusets.
bug 21782794
Change-Id: I3b2cf8ae4f3ed0c14f206584ae7fa2b1a1d11ad0
diff --git a/libcutils/sched_policy.c b/libcutils/sched_policy.c
index a7ff85e..cf50ba7 100644
--- a/libcutils/sched_policy.c
+++ b/libcutils/sched_policy.c
@@ -269,10 +269,7 @@
return -errno;
}
- // we do both setting of cpuset and setting of cgroup
- // ensures that backgrounded apps are actually deprioritized
- // including on core 0
- return set_sched_policy(tid, policy);
+ return 0;
#endif
}