Skip to content

Commit

Permalink
canbus: isotp: remove unused work queue
Browse files Browse the repository at this point in the history
Remove unused local work queue.

Fixes #34862

Signed-off-by: Henrik Brix Andersen <[email protected]>
  • Loading branch information
henrikbrixandersen authored and galak committed May 22, 2021
1 parent 1470ef6 commit 374629a
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 33 deletions.
14 changes: 0 additions & 14 deletions subsys/canbus/isotp/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -63,20 +63,6 @@ config ISOTP_ENABLE_TX_PADDING
Add padding bytes 0xCC (as recommended by Bosch) if the PDU payload
does not fit exactly into the CAN frame.

config ISOTP_WORKQUEUE_PRIO
int "Priority level of the RX and TX work queue"
default 2
help
This value defines the priority level of the work queue thread that
handles flow control, consecutive sending, receiving and callbacks.

config ISOTP_WORKQ_STACK_SIZE
int "Work queue stack size"
default 256
help
This value defines the stack size of the work queue thread that
handles flow control, consecutive sending, receiving and callbacks.

config ISOTP_RX_BUF_COUNT
int "Number of data buffers for receiving data"
default 4
Expand Down
19 changes: 0 additions & 19 deletions subsys/canbus/isotp/isotp.c
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,6 @@ NET_BUF_POOL_VAR_DEFINE(isotp_tx_pool, CONFIG_ISOTP_TX_BUF_COUNT,
CONFIG_ISOTP_BUF_TX_DATA_POOL_SIZE, NULL);
#endif

K_KERNEL_STACK_DEFINE(tx_stack, CONFIG_ISOTP_WORKQ_STACK_SIZE);
static struct k_work_q isotp_workq;

static void receive_state_machine(struct isotp_recv_ctx *ctx);

/*
Expand Down Expand Up @@ -1329,19 +1326,3 @@ int isotp_send_buf(const struct device *can_dev,
}
#endif /*CONFIG_ISOTP_USE_TX_BUF*/
#endif /*CONFIG_ISOTP_ENABLE_CONTEXT_BUFFERS*/

static int isotp_workq_init(const struct device *dev)
{
ARG_UNUSED(dev);

LOG_DBG("Starting workqueue");
k_work_queue_start(&isotp_workq, tx_stack,
K_KERNEL_STACK_SIZEOF(tx_stack),
CONFIG_ISOTP_WORKQUEUE_PRIO, NULL);

k_thread_name_set(&isotp_workq.thread, "isotp_work");

return 0;
}

SYS_INIT(isotp_workq_init, POST_KERNEL, CONFIG_APPLICATION_INIT_PRIORITY);

0 comments on commit 374629a

Please sign in to comment.