Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 58378617 authored by Glenn Kasten's avatar Glenn Kasten
Browse files

Remove references to sched_policy.h in RS

As part of scheduling policy cleanup, removing some references to
sched_policy.h and its APIs.  Activity manager should be responsible
for configuring scheduling policy, rather than leaving it up to each app.

Change-Id: Iffe972799bf3fde090b1efdd3abce5141e4d261e
parent c8a0a159
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -34,7 +34,6 @@
#include <sys/resource.h>
#include <sched.h>
#include <cutils/properties.h>
#include <cutils/sched_policy.h>
#include <sys/syscall.h>
#include <string.h>
#include <bcc/bcc.h>
+0 −11
Original line number Diff line number Diff line
@@ -26,7 +26,6 @@

#include <cutils/properties.h>

#include <cutils/sched_policy.h>
#include <sys/syscall.h>
#include <string.h>

@@ -354,17 +353,7 @@ void Context::setPriority(int32_t p) {
    // This is probably not what we want for something the user is actively
    // looking at.
    mThreadPriority = p;
#if 0
    SchedPolicy pol = SP_FOREGROUND;
    if (p > 0) {
        pol = SP_BACKGROUND;
    }
    if (!set_sched_policy(mNativeThreadId, pol)) {
        // success; reset the priority as well
    }
#else
    setpriority(PRIO_PROCESS, mNativeThreadId, p);
#endif
    mHal.funcs.setPriority(this, mThreadPriority);
}