diff options
author | Matthew Xie <mattx@google.com> | 2012-10-26 12:29:29 -0700 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2012-10-26 12:29:30 -0700 |
commit | 23ad5920f8c2dfdbd2bac8c4d7b244226a77c644 (patch) | |
tree | 21f8de49ed14d3f69c4c19438f22c3c5f46f9545 /gki/ulinux/gki_ulinux.c | |
parent | 9ab1946281916b06df6cb2e5eb37ad12cd4dce4a (diff) | |
parent | 520b756328dcf4a54cf25f5d16177aa17fdbce31 (diff) | |
download | external_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 'gki/ulinux/gki_ulinux.c')
-rwxr-xr-x | gki/ulinux/gki_ulinux.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/gki/ulinux/gki_ulinux.c b/gki/ulinux/gki_ulinux.c index 97a7f41..57ff7bb 100755 --- a/gki/ulinux/gki_ulinux.c +++ b/gki/ulinux/gki_ulinux.c @@ -33,6 +33,7 @@ #include <pthread.h> /* must be 1st header defined */ #include <time.h> #include "gki_int.h" +#include "bt_utils.h" #define LOG_TAG "GKI_LINUX" @@ -618,6 +619,10 @@ void* timer_thread(void *arg) /* Indicate that tick is just starting */ restart = 1; + prctl(PR_SET_NAME, (unsigned long)"gki timer", 0, 0, 0); + + raise_priority_a2dp(TASK_HIGH_GKI_TIMER); + while(!shutdown_timer) { /* If the timer has been stopped (no SW timer running) */ @@ -807,8 +812,6 @@ void GKI_run (void *p_task_id) return; } - prctl(PR_SET_NAME, (unsigned long)"gki timer", 0, 0, 0); - #else GKI_TRACE("GKI_run "); for (;;) |