incubator-nuttx/net/utils
Masayuki Ishikawa 1d958980bd Merged in masayuki2009/nuttx.nuttx/fix_smp_bugs (pull request #615)
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>
2018-03-20 12:34:38 +00:00
..
Kconfig
Make.defs 6loWPAN: Fix last checksum issues. Contiki 6loWPAN port is now complete (but completely untested) 2017-04-02 14:30:01 -06:00
net_chksum.c 6loWPAN: Fix last checksum issues. Contiki 6loWPAN port is now complete (but completely untested) 2017-04-02 14:30:01 -06:00
net_dsec2tick.c Standardization of some function headers. 2018-03-13 09:52:27 -06:00
net_dsec2timeval.c Standardization of some function headers. 2018-03-13 09:52:27 -06:00
net_icmpchksum.c This change adds support for semi-standard IPPROTO_ICMP AF_INET datagram sockets. This replaces the old ad hoc, nonstandard way of implementing ping with a more standard, socket interface. 2017-10-23 08:45:12 -06:00
net_incr32.c 6loWPAN: Forgot to add files with last commit. 2017-04-02 14:45:14 -06:00
net_ipchksum.c IPv6 forwarding logic must decrement the TTL and drop the packet if the hop limit is exceeded. 2017-07-04 07:05:42 -06:00
net_ipv6_mask2pref.c Standardization of some function headers. 2018-03-13 09:52:27 -06:00
net_ipv6_maskcmp.c Standardization of some function headers. 2018-03-13 09:52:27 -06:00
net_ipv6_pref2mask.c Standardization of some function headers. 2018-03-13 09:52:27 -06:00
net_lock.c Merged in masayuki2009/nuttx.nuttx/fix_smp_bugs (pull request #615) 2018-03-20 12:34:38 +00:00
net_tcpchksum.c 6loWPAN: Forgot to add files with last commit. 2017-04-02 14:45:14 -06:00
net_timeval2dsec.c Standardization of some function headers. 2018-03-13 09:52:27 -06:00
net_udpchksum.c 6loWPAN: Forgot to add files with last commit. 2017-04-02 14:45:14 -06:00
utils.h Standardization of some function headers. 2018-03-13 09:52:27 -06:00