From 6c54679758efc9e8eca00c139c473e3e22839717 Mon Sep 17 00:00:00 2001 From: Wei Wang Date: Mon, 14 Jun 2021 12:36:09 -0700 Subject: [PATCH] task_profiles.json: add taskprofile for SurfaceFlinger In some platforms, setting a different cpuset (or remove it) and/or uclamp setting is beneficial to both performance and power. Adding 2 separate profiles for vendor to override surfaceflinger scheduling policies. Bug: 170507315 Test: build and boot Signed-off-by: Wei Wang Change-Id: Ib313fd67c6ccd701109c5683d8dbab9ecd1580d8 (cherry picked from commit 6d6b71e582251bc8935e0d4f21362f5753a8d8ef) --- libprocessgroup/profiles/task_profiles.json | 27 +++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/libprocessgroup/profiles/task_profiles.json b/libprocessgroup/profiles/task_profiles.json index bd94621f3..b5fa475fa 100644 --- a/libprocessgroup/profiles/task_profiles.json +++ b/libprocessgroup/profiles/task_profiles.json @@ -475,6 +475,33 @@ ] }, + { + "Name": "SFMainPolicy", + "Actions": [ + { + "Name": "JoinCgroup", + "Params": + { + "Controller": "cpuset", + "Path": "system-background" + } + } + ] + }, + { + "Name": "SFRenderEnginePolicy", + "Actions": [ + { + "Name": "JoinCgroup", + "Params": + { + "Controller": "cpuset", + "Path": "system-background" + } + } + ] + }, + { "Name": "PerfBoost", "Actions": [