summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRavi Nagarajan <nravi@broadcom.com>2012-10-03 07:45:45 -0700
committerThe Android Automerger <android-build@android.com>2012-10-04 14:42:31 -0700
commit6d20306ac7c53686bec2e6291d9594a924b0aaae (patch)
tree1477ec1d2ccd6cba5a76762b51a180c621f5b543
parent628469c44c655f3f433d3d42691e468e5eba41c5 (diff)
downloadexternal_bluetooth_bluedroid-6d20306ac7c53686bec2e6291d9594a924b0aaae.zip
external_bluetooth_bluedroid-6d20306ac7c53686bec2e6291d9594a924b0aaae.tar.gz
external_bluetooth_bluedroid-6d20306ac7c53686bec2e6291d9594a924b0aaae.tar.bz2
Fix for timer thread stuck on BT OFF
Wake up with timer_thread on BT OFF bug 7266585 Change-Id: Id4ff27b94fc1e7f38b9c6861cb325e3d33ea91ce
-rwxr-xr-xgki/ulinux/gki_ulinux.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gki/ulinux/gki_ulinux.c b/gki/ulinux/gki_ulinux.c
index 4d30bbb..97a7f41 100755
--- a/gki/ulinux/gki_ulinux.c
+++ b/gki/ulinux/gki_ulinux.c
@@ -760,6 +760,7 @@ void GKI_freeze()
{
#ifdef NO_GKI_RUN_RETURN
shutdown_timer = 1;
+ pthread_mutex_unlock( &gki_cb.os.gki_timer_mutex );
/* Ensure that the timer thread exits */
pthread_join(timer_thread_id, NULL);
#endif