summaryrefslogtreecommitdiffstats
path: root/hci/src/bt_hci_bdroid.c
diff options
context:
space:
mode:
authorMatthew Xie <mattx@google.com>2012-10-26 12:29:29 -0700
committerAndroid (Google) Code Review <android-gerrit@google.com>2012-10-26 12:29:30 -0700
commit23ad5920f8c2dfdbd2bac8c4d7b244226a77c644 (patch)
tree21f8de49ed14d3f69c4c19438f22c3c5f46f9545 /hci/src/bt_hci_bdroid.c
parent9ab1946281916b06df6cb2e5eb37ad12cd4dce4a (diff)
parent520b756328dcf4a54cf25f5d16177aa17fdbce31 (diff)
downloadexternal_bluetooth_bluedroid-23ad5920f8c2dfdbd2bac8c4d7b244226a77c644.zip
external_bluetooth_bluedroid-23ad5920f8c2dfdbd2bac8c4d7b244226a77c644.tar.gz
external_bluetooth_bluedroid-23ad5920f8c2dfdbd2bac8c4d7b244226a77c644.tar.bz2
Merge "Bump up priority of a few tasks that could affect a2dp" into jb-mr1-dev
Diffstat (limited to 'hci/src/bt_hci_bdroid.c')
-rw-r--r--hci/src/bt_hci_bdroid.c3
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);