Skip to content

Commit dd37a25

Browse files
jhedbergMaureenHelm
authored andcommitted
Bluetooth: Host: Remove leftover k_poll related code
There's no use of k_poll in the host stack anymore, so remove leftovers and related definitions. Signed-off-by: Johan Hedberg <johan.hedberg@silabs.com>
1 parent 898679e commit dd37a25

File tree

6 files changed

+0
-16
lines changed

6 files changed

+0
-16
lines changed

‎subsys/bluetooth/Kconfig‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,6 @@ config BT_HCI_ACL_FLOW_CONTROL
154154
default y if !HAS_BT_CTLR && !BT_STM32_IPM && !BT_ESP32 && !BT_STM32WBA
155155
# Enable if building a Controller-only build
156156
default y if BT_HCI_RAW
157-
select POLL
158157
help
159158
Enable support for throttling ACL buffers from the controller
160159
to the host. This is particularly useful when the host and

‎subsys/bluetooth/host/Kconfig‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@ config BT_HCI_HOST
4040
bool
4141
default y
4242
depends on !BT_HCI_RAW
43-
select POLL
4443

4544
config BT_HCI_TX_STACK_SIZE
4645
# NOTE: This value is derived from other symbols and should only be

‎subsys/bluetooth/host/conn.c‎

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -787,9 +787,6 @@ static int send_buf(struct bt_conn *conn, struct net_buf *buf,
787787
return err;
788788
}
789789

790-
static struct k_poll_signal conn_change =
791-
K_POLL_SIGNAL_INITIALIZER(conn_change);
792-
793790
static void conn_destroy(struct bt_conn *conn, void *data)
794791
{
795792
if (conn->state == BT_CONN_CONNECTED ||
@@ -1184,7 +1181,6 @@ void bt_conn_set_state(struct bt_conn *conn, bt_conn_state_t state)
11841181
}
11851182
break;
11861183
}
1187-
k_poll_signal_raise(&conn_change, 0);
11881184

11891185
if (bt_conn_is_iso(conn)) {
11901186
bt_iso_connected(conn);

‎subsys/bluetooth/host/hci_core.h‎

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -34,13 +34,6 @@
3434
/* SCO settings */
3535
#define BT_VOICE_CVSD_16BIT 0x0060
3636

37-
/* k_poll event tags */
38-
enum {
39-
BT_EVENT_CMD_TX,
40-
BT_EVENT_CONN_TX_QUEUE,
41-
BT_EVENT_CONN_FREE_TX,
42-
};
43-
4437
/* bt_dev flags: the flags defined here represent BT controller state */
4538
enum {
4639
BT_DEV_ENABLE,

‎tests/bluetooth/host/conn/mocks/kernel.c‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
#include "kernel.h"
1313

1414
DEFINE_FAKE_VALUE_FUNC(bool, k_is_in_isr);
15-
DEFINE_FAKE_VALUE_FUNC(int, k_poll_signal_raise, struct k_poll_signal *, int);
1615
DEFINE_FAKE_VALUE_FUNC(int, k_sem_take, struct k_sem *, k_timeout_t);
1716
DEFINE_FAKE_VALUE_FUNC(unsigned int, k_sem_count_get, struct k_sem *);
1817
DEFINE_FAKE_VOID_FUNC(k_sem_give, struct k_sem *);

‎tests/bluetooth/host/conn/mocks/kernel.h‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
/* List of fakes used by this unit tester */
1212
#define KERNEL_MOCKS_FFF_FAKES_LIST(FAKE) \
1313
FAKE(k_is_in_isr) \
14-
FAKE(k_poll_signal_raise) \
1514
FAKE(k_sem_take) \
1615
FAKE(k_sem_count_get) \
1716
FAKE(k_sem_give) \
@@ -36,7 +35,6 @@
3635
FAKE(k_sched_unlock) \
3736

3837
DECLARE_FAKE_VALUE_FUNC(bool, k_is_in_isr);
39-
DECLARE_FAKE_VALUE_FUNC(int, k_poll_signal_raise, struct k_poll_signal *, int);
4038
DECLARE_FAKE_VALUE_FUNC(int, k_sem_take, struct k_sem *, k_timeout_t);
4139
DECLARE_FAKE_VALUE_FUNC(unsigned int, k_sem_count_get, struct k_sem *);
4240
DECLARE_FAKE_VOID_FUNC(k_sem_give, struct k_sem *);

0 commit comments

Comments
 (0)