nuttx/arch/arm
Masayuki Ishikawa 55c00ad3d9 arch: cxd56xx: Fix the pause handler for SMP
Summary:
- I noticed that sched_add_readytorun() runs on multiple CPUs simultaneously
- Finally, I found the root cause which was described in TODO
- Actually, the task newly scheduled on remote CPU did not acquire g_cpu_irqlock
- This commit fixes this issue by adding a critical section to the pause handler
- Which will acquire g_cpu_irqlock on the remote CPU explicitly

Impact:
- SMP only

Testing:
- Tested with spresense:wifi_smp (NCPUS=2 and 4)
- Run smp, ostest, nxplayer

Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
2020-11-20 00:49:25 -08:00
..
include arm: Add _intmax_t and _uintmax_t 2020-11-19 00:49:56 -08:00
src arch: cxd56xx: Fix the pause handler for SMP 2020-11-20 00:49:25 -08:00
Kconfig arch: Add custom arch chip build support 2020-10-20 14:48:16 +08:00