mirror of
https://github.com/apache/nuttx.git
synced 2026-06-06 00:14:22 +08:00
sched: fix build break on spin_lock_irqsave()
Change-Id: Ibfa95021964f44a714cf504fbd0f491b9d8a18c3 Signed-off-by: ligd <liguiding1@xiaomi.com>
This commit is contained in:
@@ -57,9 +57,9 @@ static FAR sigactq_t *nxsig_alloc_action(void)
|
||||
|
||||
/* Try to get the signal action structure from the free list */
|
||||
|
||||
flags = spin_lock_irqsave();
|
||||
flags = spin_lock_irqsave(NULL);
|
||||
sigact = (FAR sigactq_t *)sq_remfirst(&g_sigfreeaction);
|
||||
spin_unlock_irqrestore(flags);
|
||||
spin_unlock_irqrestore(NULL, flags);
|
||||
|
||||
/* Check if we got one. */
|
||||
|
||||
@@ -71,9 +71,9 @@ static FAR sigactq_t *nxsig_alloc_action(void)
|
||||
|
||||
/* And try again */
|
||||
|
||||
flags = spin_lock_irqsave();
|
||||
flags = spin_lock_irqsave(NULL);
|
||||
sigact = (FAR sigactq_t *)sq_remfirst(&g_sigfreeaction);
|
||||
spin_unlock_irqrestore(flags);
|
||||
spin_unlock_irqrestore(NULL, flags);
|
||||
DEBUGASSERT(sigact);
|
||||
}
|
||||
|
||||
@@ -372,7 +372,7 @@ void nxsig_release_action(FAR sigactq_t *sigact)
|
||||
|
||||
/* Just put it back on the free list */
|
||||
|
||||
flags = spin_lock_irqsave();
|
||||
flags = spin_lock_irqsave(NULL);
|
||||
sq_addlast((FAR sq_entry_t *)sigact, &g_sigfreeaction);
|
||||
spin_unlock_irqrestore(flags);
|
||||
spin_unlock_irqrestore(NULL, flags);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user