sched/sched: Extend the last global lock change to work with the lc823450-xgevk which does not support the atomic fetch add but does support disabling interprocessor interrupts. Disabling interprocessor interrupts will also guarantee that the TCB addres calculation is atomic.

This commit is contained in:
Gregory Nutt
2018-02-05 13:32:09 -06:00
parent 37c9b3d54a
commit b884fb9fed
3 changed files with 32 additions and 12 deletions
+1 -1
View File
@@ -615,7 +615,7 @@ bool irq_cpu_locked(int cpu)
return false;
}
#ifdef CONFIG_ARCH_HAVE_FETCHADD
#if defined(CONFIG_ARCH_HAVE_FETCHADD) && !defined(CONFIG_ARCH_GLOBAL_IRQDISABLE)
/* If the global lockcount has been incremented then simply return true */
if (g_global_lockcount > 0)