diff options
Diffstat (limited to 'gki')
-rw-r--r-- | gki/Android.mk | 1 | ||||
-rwxr-xr-x | gki/ulinux/gki_ulinux.c | 7 |
2 files changed, 6 insertions, 2 deletions
diff --git a/gki/Android.mk b/gki/Android.mk index c76c237..0ece25b 100644 --- a/gki/Android.mk +++ b/gki/Android.mk @@ -8,6 +8,7 @@ LOCAL_C_INCLUDES:= $(LOCAL_PATH)/common \ $(LOCAL_PATH)/ulinux \ $(LOCAL_PATH)/../include \ $(LOCAL_PATH)/../stack/include \ + $(LOCAL_PATH)/../utils/include \ $(bdroid_C_INCLUDES) \ LOCAL_CFLAGS += -Werror $(bdroid_CFLAGS) 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 (;;) |