1d958980bd
Fix SMP related bugs * sched/sched: Fix a deadlock in SMP mode Two months ago, I introduced sched_tasklist_lock() and sched_tasklist_unlock() to protect tasklists in SMP mode. Actually, this change works pretty well for HTTP audio streaming aging test with lc823450-xgevk. However, I found a deadlock in the scheduler when I tried similar aging tests with DVFS autonomous mode where CPU clock speed changed based on cpu load. In this case, call sequences were as follows; cpu1: sched_unlock()->sched_mergepending()->sched_addreadytorun()->up_cpu_pause() cpu0: sched_lock()->sched_mergepending() To avoid this deadlock, I added sched_tasklist_unlock() when calling up_cpu_pause() and sched_addreadytorun(). Also, added sched_tasklist_lock() after the call. Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com> * libc: Add critical section in lib_filesem.c for SMP To set my_pid into fs_folder atomically in SMP mode, critical section API must be used. Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com> * mm: Add critical section in mm_sem.c for SMP To set my_pid into mm_folder atomically in SMP mode, critical section API must be used. Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com> * net: Add critical section in net_lock.c for SMP To set my pid (me) into fs_folder atomically in SMP mode, critical section API must be used. Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com> Approved-by: Gregory Nutt <gnutt@nuttx.org> |
||
---|---|---|
.. | ||
Kconfig | ||
lib_crc8.c | ||
lib_crc16.c | ||
lib_crc32.c | ||
lib_crc64.c | ||
lib_debug.c | ||
lib_dumpbuffer.c | ||
lib_filesem.c | ||
lib_ioctl.c | ||
lib_kbddecode.c | ||
lib_kbdencode.c | ||
lib_match.c | ||
lib_mkfifo.c | ||
lib_ncompress.c | ||
lib_sendfile.c | ||
lib_slcddecode.c | ||
lib_slcdencode.c | ||
lib_stream.c | ||
lib_streamsem.c | ||
lib_tea_decrypt.c | ||
lib_tea_encrypt.c | ||
lib_uadd32x64.c | ||
lib_uadd64.c | ||
lib_umul32.c | ||
lib_umul32x64.c | ||
lib_umul64.c | ||
lib_usub64.c | ||
lib_usub64x32.c | ||
lib_utsname.c | ||
lib_xorshift128.c | ||
Make.defs |