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

Commit 10cbbd8f authored by Glenn Kasten's avatar Glenn Kasten
Browse files

Workaround for add_tid_to_cgroup failed to write

Bug: 6467109
Change-Id: I6dff8e608d83c7a7c453c25c94ad100f113769b9
parent 3c32e5da
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -101,8 +101,10 @@ struct thread_data_t {
        if (gDoSchedulingGroup) {
            if (prio >= ANDROID_PRIORITY_BACKGROUND) {
                set_sched_policy(androidGetTid(), SP_BACKGROUND);
            } else {
            } else if (prio > ANDROID_PRIORITY_AUDIO) {
                set_sched_policy(androidGetTid(), SP_FOREGROUND);
            } else {
                // defaults to that of parent, or as set by requestPriority()
            }
        }