mirror of
https://github.com/apache/nuttx.git
synced 2026-10-13 01:00:12 +00:00
SMP sched_unlock: Should merging depend on g_cpu_irqlock or not? Let's at least be consistent. And don't use irqcount; use g_cpu_irqlock.
This commit is contained in:
parent
c5bb717976
commit
36b676eea6
1 changed files with 1 additions and 1 deletions
|
|
@ -121,7 +121,7 @@ int sched_unlock(void)
|
|||
*/
|
||||
|
||||
#ifdef CONFIG_SMP
|
||||
if (g_pendingtasks.head != NULL && rtcb->irqcount <= 0)
|
||||
if (!spin_islocked(&g_cpu_schedlock) && g_pendingtasks.head != NULL)
|
||||
#else
|
||||
if (g_pendingtasks.head != NULL)
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue