This branch has an up-to-date cutils.
(You will need to sync system/core.)
Change-Id: I8db5bdc59a555b1ec53a70d02c42ba97941a0ad9
diff --git a/src/native/dalvik_system_Zygote.cc b/src/native/dalvik_system_Zygote.cc
index 566f0b3..0649d96 100644
--- a/src/native/dalvik_system_Zygote.cc
+++ b/src/native/dalvik_system_Zygote.cc
@@ -331,15 +331,11 @@
SetCapabilities(permittedCapabilities, effectiveCapabilities);
-#if 1
- UNIMPLEMENTED(WARNING) << "enable this code when cutils/sched_policy.h has SP_DEFAULT";
-#else
err = set_sched_policy(0, SP_DEFAULT);
if (err < 0) {
errno = -err;
PLOG(FATAL) << "set_sched_policy(0, SP_DEFAULT) failed";
}
-#endif
// Our system thread ID, etc, has changed so reset Thread state.
self->InitAfterFork();