Skip to content
  1. Mar 20, 2018
    • Juha Niskanen's avatar
    • Masayuki Ishikawa's avatar
      Merged in masayuki2009/nuttx.nuttx/fix_smp_bugs (pull request #615) · 1d958980
      Masayuki Ishikawa authored
      
      
      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: default avatarMasayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
      
      * libc: Add critical section in lib_filesem.c for SMP
      
          To set my...
      1d958980
  2. Mar 19, 2018
  3. Mar 18, 2018
  4. Mar 17, 2018
  5. Mar 16, 2018
  6. Mar 15, 2018
  7. Mar 14, 2018
  8. Mar 13, 2018
  9. Mar 12, 2018
  10. Mar 11, 2018