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

Commit 911ceb26 authored by Zach Johnson's avatar Zach Johnson
Browse files

Remove now unused bt_startup_thread

Bug: 159815595
Tag: #refactor
Test: compile & verify basic functions working
Change-Id: I21bf74fa6b8ea8b6cc2240696f5f1529ae541688
parent 84ab843c
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -196,8 +196,6 @@ static void event_start_up_stack(UNUSED_ATTR void* context) {
    module_start_up(get_module(HCI_MODULE));
  }

  BTU_StartUp();

  btm_init();
  l2c_init();
  sdp_init();
+0 −2
Original line number Diff line number Diff line
@@ -47,8 +47,6 @@
#include "main/shim/controller.h"
#include "main/shim/shim.h"

extern bluetooth::common::MessageLoopThread bt_startup_thread;

/******************************************************************************/
/*               L O C A L    D A T A    D E F I N I T I O N S                */
/******************************************************************************/
+0 −27
Original line number Diff line number Diff line
@@ -29,10 +29,6 @@
#include "l2c_api.h"
#include "sdpint.h"

using bluetooth::common::MessageLoopThread;

MessageLoopThread bt_startup_thread("bt_startup_thread");

void btu_task_shut_down();

/*****************************************************************************
@@ -56,29 +52,6 @@ void btu_free_core() {
  btm_free();
}

/*****************************************************************************
 *
 * Function         BTU_StartUp
 *
 * Description      Initializes the BTU control block.
 *
 *                  NOTE: Must be called before creating any tasks
 *                      (RPC, BTU, HCIT, APPL, etc.)
 *
 * Returns          void
 *
 *****************************************************************************/
void BTU_StartUp() {
  bt_startup_thread.StartUp();
  if (!bt_startup_thread.EnableRealTimeScheduling()) {
    LOG(ERROR) << __func__ << ": Unable to set real time scheduling policy for "
               << bt_startup_thread;
    BTU_ShutDown();
    return;
  }
}

void BTU_ShutDown() {
  btu_task_shut_down();
  bt_startup_thread.ShutDown();
}
+0 −1
Original line number Diff line number Diff line
@@ -65,7 +65,6 @@ bt_status_t do_in_main_thread_delayed(const base::Location& from_here,
                                      base::OnceClosure task,
                                      const base::TimeDelta& delay);

void BTU_StartUp(void);
void BTU_ShutDown(void);

#endif