We shouldn't use swapping with an interrupt lock held as it works incorrectly on SMP platforms. Fix that by replacing irq_lock with spinlock for pthread subsystem. NOTE: we fix that in a simple way with single spinlock for mutex / cond_var / barrier. That could be improved later (i.e. split it for several spinlocks). Signed-off-by: Eugeniy Paltsev <Eugeniy.Paltsev@synopsys.com> Signed-off-by: Evgeniy Paltsev <PaltsevEvgeniy@gmail.com> |
||
|---|---|---|
| .. | ||
| clock.c | ||
| CMakeLists.txt | ||
| eventfd.c | ||
| fs.c | ||
| Kconfig | ||
| mqueue.c | ||
| nanosleep.c | ||
| pthread_barrier.c | ||
| pthread_common.c | ||
| pthread_cond.c | ||
| pthread_key.c | ||
| pthread_mutex.c | ||
| pthread_rwlock.c | ||
| pthread_sched.c | ||
| pthread.c | ||
| semaphore.c | ||
| sleep.c | ||
| timer.c | ||