From c9011b3136d97a750a0eaac9e5da4d67ef871ac9 Mon Sep 17 00:00:00 2001 From: hujun5 Date: Mon, 8 Jul 2024 13:41:07 +0800 Subject: [PATCH] irq: irq_attach_wqueue replace irq_attach_thread reason: using a shared same priority queue can reduce memory consumption. Signed-off-by: hujun5 --- arch/arm/src/armv7-m/arm_systick.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/arch/arm/src/armv7-m/arm_systick.c b/arch/arm/src/armv7-m/arm_systick.c index 9bc636f32f423..debfa7bf66564 100644 --- a/arch/arm/src/armv7-m/arm_systick.c +++ b/arch/arm/src/armv7-m/arm_systick.c @@ -302,10 +302,9 @@ struct timer_lowerhalf_s *systick_initialize(bool coreclk, } #ifdef CONFIG_ARMV7M_SYSTICK_IRQ_THREAD - irq_attach_thread(NVIC_IRQ_SYSTICK, systick_isr_handle, + irq_attach_wqueue(NVIC_IRQ_SYSTICK, systick_isr_handle, systick_interrupt, lower, - CONFIG_ARMV7M_SYSTICK_IRQ_THREAD_PRIORITY, - CONFIG_ARMV7M_SYSTICK_IRQ_THREAD_STACK_SIZE); + CONFIG_ARMV7M_SYSTICK_IRQ_THREAD_PRIORITY); #else irq_attach(NVIC_IRQ_SYSTICK, systick_interrupt, lower); #endif