summaryrefslogtreecommitdiffstats
path: root/gki/ulinux/gki_ulinux.c
diff options
context:
space:
mode:
Diffstat (limited to 'gki/ulinux/gki_ulinux.c')
-rwxr-xr-xgki/ulinux/gki_ulinux.c7
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 (;;)