diff options
author | Matthew Xie <mattx@google.com> | 2012-10-17 19:30:32 -0700 |
---|---|---|
committer | Matthew Xie <mattx@google.com> | 2012-10-19 14:51:43 -0700 |
commit | 520b756328dcf4a54cf25f5d16177aa17fdbce31 (patch) | |
tree | c9bb9d4b0ea2109e217a355b23d46e753aa3f61d /hci/src/bt_hci_bdroid.c | |
parent | ad66e170ebd53f8f5970844f9b28ec4d56125c13 (diff) | |
download | external_bluetooth_bluedroid-520b756328dcf4a54cf25f5d16177aa17fdbce31.zip external_bluetooth_bluedroid-520b756328dcf4a54cf25f5d16177aa17fdbce31.tar.gz external_bluetooth_bluedroid-520b756328dcf4a54cf25f5d16177aa17fdbce31.tar.bz2 |
Bump up priority of a few tasks that could affect a2dp
Change nice to -16, same as android audio service. Affected tasks: btu,
gki timer, hci worker, media task, userial_read
bug 7267756
Change-Id: I0b5ecc4345240601ef6e5890240054dab193e4a0
Diffstat (limited to 'hci/src/bt_hci_bdroid.c')
-rw-r--r-- | hci/src/bt_hci_bdroid.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/hci/src/bt_hci_bdroid.c b/hci/src/bt_hci_bdroid.c index 27d190e..7b14eb3 100644 --- a/hci/src/bt_hci_bdroid.c +++ b/hci/src/bt_hci_bdroid.c @@ -34,6 +34,7 @@ #include "utils.h" #include "hci.h" #include "userial.h" +#include "bt_utils.h" #include <sys/prctl.h> #ifndef BTHC_DBG @@ -344,6 +345,8 @@ static void *bt_hc_worker_thread(void *arg) prctl(PR_SET_NAME, (unsigned long)"bt_hc_worker", 0, 0, 0); tx_cmd_pkts_pending = FALSE; + raise_priority_a2dp(TASK_HIGH_HCI_WORKER); + while (lib_running) { pthread_mutex_lock(&hc_cb.mutex); |