From 36e146d6fc8807c3aff135c66511226d71a0b2fb Mon Sep 17 00:00:00 2001 From: Carmen Jackson Date: Thu, 8 Mar 2018 12:58:13 -0800 Subject: [PATCH] Add hwcomposer to the system-background cpuset. Little cores should be fast enough to handle hwcomposer work, so avoiding using big cores for this is a potential opportunity to save battery. Bug: 73543056 Test: Verified using dumpsys gfxinfo that TouchLatency doesn't drop frames. Test: Took 10s systraces of TouchLatency and a Youtube VR video and saw no frames dropped in SurfaceFlinger. Change-Id: If96e13a2bacc9541f4d69a5736254817f20cacdd --- .../default/android.hardware.graphics.composer@2.1-service.rc | 1 + 1 file changed, 1 insertion(+) diff --git a/graphics/composer/2.1/default/android.hardware.graphics.composer@2.1-service.rc b/graphics/composer/2.1/default/android.hardware.graphics.composer@2.1-service.rc index 3b6710b43a..5a5b51e8e1 100644 --- a/graphics/composer/2.1/default/android.hardware.graphics.composer@2.1-service.rc +++ b/graphics/composer/2.1/default/android.hardware.graphics.composer@2.1-service.rc @@ -4,3 +4,4 @@ service vendor.hwcomposer-2-1 /vendor/bin/hw/android.hardware.graphics.composer@ group graphics drmrpc capabilities SYS_NICE onrestart restart surfaceflinger + writepid /dev/cpuset/system-background/tasks