Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit bfdaf36f authored by Sharvil Nanavati's avatar Sharvil Nanavati Committed by Andre Eisenbach
Browse files

Don't call GKI_send_event on BTU task since it's not a GKI task anymore.

parent acaf6fd6
Loading
Loading
Loading
Loading
+0 −3
Original line number Diff line number Diff line
@@ -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) {
+0 −4
Original line number Diff line number Diff line
@@ -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
+0 −2
Original line number Diff line number Diff line
@@ -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));
}

/*******************************************************************************
+0 −5
Original line number Diff line number Diff line
@@ -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);