From 1b8f6f7c771a7ff04790833674705972009a3c7d Mon Sep 17 00:00:00 2001 From: Joel Fernandes Date: Mon, 3 Apr 2017 19:19:30 -0700 Subject: [PATCH] Bluetooth HAL: Add to foreground schedtune group EAS (Energy-Aware Scheduler) tends to cluster tasks together unless they're marked to prefer an idle CPU (prefer-idle) during placement. This is to save energy however it increases latencies. This is noticeable when the Binder driver demotes the RT task to CFS and when we try to do load balance in this path, the selection path still selects a busy CPU. Add Bluetooth HAL service to the foreground schedtune group to fix this as its critical for tasks like bluetooth audio playback. Test: Boot and verify bluetooth HAL is in the foreground stune group Bug: 36867985 Change-Id: Ib3c43cca4a2049af3700978b58a05989cc20b6ac Signed-off-by: Joel Fernandes --- bluetooth/1.0/default/android.hardware.bluetooth@1.0-service.rc | 1 + 1 file changed, 1 insertion(+) diff --git a/bluetooth/1.0/default/android.hardware.bluetooth@1.0-service.rc b/bluetooth/1.0/default/android.hardware.bluetooth@1.0-service.rc index 8545d2f613..0f76c39f68 100644 --- a/bluetooth/1.0/default/android.hardware.bluetooth@1.0-service.rc +++ b/bluetooth/1.0/default/android.hardware.bluetooth@1.0-service.rc @@ -2,3 +2,4 @@ service bluetooth-1-0 /vendor/bin/hw/android.hardware.bluetooth@1.0-service class hal user bluetooth group bluetooth + writepid /dev/stune/foreground/tasks