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

Commit 6748f24d authored by Ganesh Mahendran's avatar Ganesh Mahendran
Browse files

libcutils: fix system-background tasks shown in top command



tasks in system-background cgroup will be shown as below:
 580   580 system   12  -8   1% S 190656K  19408K unk surfaceflinger  /system/bin/surfaceflinger

This patch fix this issue.

Change-Id: Ib39ff892010498548d7fbfb4021df62498acd033
Signed-off-by: default avatarGanesh Mahendran <opensource.ganesh@gmail.com>
parent 120add07
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -262,6 +262,8 @@ int get_sched_policy(int tid, SchedPolicy *policy)
            *policy = SP_FOREGROUND;
        } else if (!strcmp(grpBuf, "foreground")) {
            *policy = SP_FOREGROUND;
        } else if (!strcmp(grpBuf, "system-background")) {
            *policy = SP_SYSTEM;
        } else if (!strcmp(grpBuf, "background")) {
            *policy = SP_BACKGROUND;
        } else if (!strcmp(grpBuf, "top-app")) {