mirror of
https://github.com/apache/nuttx.git
synced 2026-05-20 20:44:39 +08:00
sched/irq: Fix an error in a assertion introduced in commit 37c9b3d54a. Noted by Masayuki Ishikawa.
This commit is contained in:
@@ -506,7 +506,7 @@ void leave_critical_section(irqstate_t flags)
|
||||
*/
|
||||
|
||||
cpu = this_cpu();
|
||||
DEBUGASSERT(sched_islocked_global() &&
|
||||
DEBUGASSERT(spin_islocked(&g_cpu_irqlock) &&
|
||||
(g_cpu_irqset & (1 << cpu)) != 0);
|
||||
|
||||
/* Check if releasing the lock held by this CPU will unlock the
|
||||
|
||||
Reference in New Issue
Block a user