From 56bb76caca2204fd405dcc77a53ed24c3ab202cd Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Mon, 5 Feb 2018 21:13:42 -0600 Subject: [PATCH] sched/irq: Fix an error in a assertion introduced in commit 37c9b3d54aa82272d9d85a8f7294b53fd8842d43. Noted by Masayuki Ishikawa. --- sched/irq/irq_csection.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sched/irq/irq_csection.c b/sched/irq/irq_csection.c index bc32f37f8ec..13697752dd7 100644 --- a/sched/irq/irq_csection.c +++ b/sched/irq/irq_csection.c @@ -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