diff --git a/firmware/libcommon/include/llist_irqsafe.h b/firmware/libcommon/include/llist_irqsafe.h index 9a59d3d0..e7e2021f 100644 --- a/firmware/libcommon/include/llist_irqsafe.h +++ b/firmware/libcommon/include/llist_irqsafe.h @@ -2,6 +2,14 @@ #include "osmocom/core/linuxlist.h" +static inline void llist_add_irqsafe(struct llist_head *_new, + struct llist_head *head) +{ + __disable_irq(); + llist_add(_new, head); + __enable_irq(); +} + static inline void llist_add_tail_irqsafe(struct llist_head *_new, struct llist_head *head) {