mirror of
https://gerrit.osmocom.org/simtrace2
synced 2024-08-11 13:36:19 +00:00
Add llist_add_irqsafe() similar to llist_add_tail_irqsafe()
This commit is contained in:
parent
41eb98b78d
commit
9ac794c770
1 changed files with 8 additions and 0 deletions
|
@ -2,6 +2,14 @@
|
||||||
|
|
||||||
#include "osmocom/core/linuxlist.h"
|
#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,
|
static inline void llist_add_tail_irqsafe(struct llist_head *_new,
|
||||||
struct llist_head *head)
|
struct llist_head *head)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue