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

Commit b13db6d5 authored by Android Build Coastguard Worker's avatar Android Build Coastguard Worker
Browse files

Snap for 7995257 from a2c0b86a to sc-v2-release

Change-Id: I2aba89fc6d9fb5d79acb5686c37d1594984b07e2
parents df828c47 a2c0b86a
Loading
Loading
Loading
Loading
+1 −4
Original line number Diff line number Diff line
@@ -317,10 +317,7 @@ int androidSetThreadPriority(pid_t tid, int pri)
    if (pri >= ANDROID_PRIORITY_BACKGROUND) {
        rc = SetTaskProfiles(tid, {"SCHED_SP_SYSTEM"}, true) ? 0 : -1;
    } else if (curr_pri >= ANDROID_PRIORITY_BACKGROUND) {
        SchedPolicy policy = SP_FOREGROUND;
        // Change to the sched policy group of the process.
        get_sched_policy(getpid(), &policy);
        rc = SetTaskProfiles(tid, {get_sched_policy_profile_name(policy)}, true) ? 0 : -1;
        rc = SetTaskProfiles(tid, {"SCHED_SP_FOREGROUND"}, true) ? 0 : -1;
    }

    if (rc) {