Skip to content

Commit

Permalink
irq: irq_attach_wqueue replace irq_attach_thread
Browse files Browse the repository at this point in the history
reason:
using a shared same priority queue can reduce memory consumption.

Signed-off-by: hujun5 <[email protected]>
  • Loading branch information
hujun260 committed Oct 13, 2024
1 parent 505adfa commit c9011b3
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions arch/arm/src/armv7-m/arm_systick.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c9011b3

Please sign in to comment.