diff options
author | Sharvil Nanavati <sharvil@google.com> | 2015-03-02 15:02:39 -0800 |
---|---|---|
committer | Andre Eisenbach <eisenbach@google.com> | 2015-03-16 16:51:42 -0700 |
commit | d553708949d37e1e37a27ad08cc1ec705e706b3d (patch) | |
tree | 21206699849db5314e926bc888b29dfa0a80bb9d | |
parent | c0a87fe60f79ddf41595a30e75a77f43c19cd323 (diff) | |
download | android_system_bt-d553708949d37e1e37a27ad08cc1ec705e706b3d.tar.gz android_system_bt-d553708949d37e1e37a27ad08cc1ec705e706b3d.tar.bz2 android_system_bt-d553708949d37e1e37a27ad08cc1ec705e706b3d.zip |
Don't call GKI_send_event on BTU task since it's not a GKI task anymore.
-rw-r--r-- | bta/sys/bta_sys_main.c | 3 | ||||
-rw-r--r-- | include/gki_target.h | 4 | ||||
-rw-r--r-- | stack/btu/btu_hcif.c | 2 | ||||
-rw-r--r-- | stack/include/btu.h | 5 |
4 files changed, 0 insertions, 14 deletions
diff --git a/bta/sys/bta_sys_main.c b/bta/sys/bta_sys_main.c index a0833d6bf..9a4928ac6 100644 --- a/bta/sys/bta_sys_main.c +++ b/bta/sys/bta_sys_main.c @@ -599,8 +599,6 @@ BOOLEAN bta_sys_is_register(UINT8 id) void bta_sys_sendmsg(void *p_msg) { fixed_queue_enqueue(btu_bta_msg_queue, p_msg); - // Signal the target thread work is ready. - GKI_send_event(BTU_TASK, (UINT16)EVENT_MASK(BTA_MBOX)); } /******************************************************************************* @@ -618,7 +616,6 @@ void bta_alarm_cb(void *data) { TIMER_LIST_ENT *p_tle = (TIMER_LIST_ENT *)data; fixed_queue_enqueue(btu_bta_alarm_queue, p_tle); - GKI_send_event(BTU_TASK, TASK_MBOX_0_EVT_MASK); } void bta_sys_start_timer(TIMER_LIST_ENT *p_tle, UINT16 type, INT32 timeout_ms) { diff --git a/include/gki_target.h b/include/gki_target.h index be0eae030..32ddf1f01 100644 --- a/include/gki_target.h +++ b/include/gki_target.h @@ -27,10 +27,6 @@ ******************************************************************************/ /* Definitions of task IDs for inter-task messaging */ -#ifndef BTU_TASK -#define BTU_TASK 0 -#endif - #ifndef BTIF_TASK #define BTIF_TASK 1 #endif diff --git a/stack/btu/btu_hcif.c b/stack/btu/btu_hcif.c index e71723e46..cadcb849b 100644 --- a/stack/btu/btu_hcif.c +++ b/stack/btu/btu_hcif.c @@ -940,7 +940,6 @@ static void btu_hcif_command_complete_evt(BT_HDR *response, void *context) event->event = BTU_POST_TO_TASK_NO_GOOD_HORRIBLE_HACK; fixed_queue_enqueue(btu_hci_msg_queue, event); - GKI_send_event(BTU_TASK, (UINT16)EVENT_MASK(BTU_HCI_RCV_MBOX)); } @@ -1140,7 +1139,6 @@ static void btu_hcif_command_status_evt(uint8_t status, BT_HDR *command, void *c event->event = BTU_POST_TO_TASK_NO_GOOD_HORRIBLE_HACK; fixed_queue_enqueue(btu_hci_msg_queue, event); - GKI_send_event(BTU_TASK, (UINT16)EVENT_MASK(BTU_HCI_RCV_MBOX)); } /******************************************************************************* diff --git a/stack/include/btu.h b/stack/include/btu.h index 2da0035d7..336f9f990 100644 --- a/stack/include/btu.h +++ b/stack/include/btu.h @@ -49,11 +49,6 @@ typedef struct { void *context; } command_status_hack_t; -/* Define the BTU mailbox usage -*/ -#define BTU_HCI_RCV_MBOX TASK_MBOX_0 /* Messages from HCI */ -#define BTU_BTIF_MBOX TASK_MBOX_1 /* Messages to BTIF */ - /* callbacks */ typedef void (*tBTU_TIMER_CALLBACK)(TIMER_LIST_ENT *p_tle); |