[riot-commits] [RIOT-OS/RIOT] 1df0b5: core: sched_switch only switch for higher priority

Ludwig Ortmann ludwig.ortmann at fu-berlin.de
Thu Sep 25 11:35:55 CEST 2014


  Branch: refs/heads/master
  Home:   https://github.com/RIOT-OS/RIOT
  Commit: 1df0b5644ab4a00b3a4e982b05de91d9b28c28a9
      https://github.com/RIOT-OS/RIOT/commit/1df0b5644ab4a00b3a4e982b05de91d9b28c28a9
  Author: René Kijewski <rene.kijewski at fu-berlin.de>
  Date:   2014-09-25 (Thu, 25 Sep 2014)

  Changed paths:
    M core/sched.c

  Log Message:
  -----------
  core: sched_switch only switch for higher priority

sched_switch() is called by some library functions when a call unblocks
another thread. Then it needs to be tested if the current thread should
be preempted for the newly runnable thread.

A non-volutarily yield should only happen if the unblocked thread has a
_higher_ priority than the current thread. The current implementation,
which tests if the other thread has the same or a higher priority, does
not fit the documentation.


  Commit: 7b3f0c5b6a8871fe57fe6b2bd811f37b7718c624
      https://github.com/RIOT-OS/RIOT/commit/7b3f0c5b6a8871fe57fe6b2bd811f37b7718c624
  Author: Ludwig Ortmann <ludwig.ortmann at fu-berlin.de>
  Date:   2014-09-25 (Thu, 25 Sep 2014)

  Changed paths:
    M core/sched.c

  Log Message:
  -----------
  Merge pull request #1693 from Kijewski/sched_switch-only-if-higher

core: sched_switch only switch for higher priority


Compare: https://github.com/RIOT-OS/RIOT/compare/bd0ff3712eb8...7b3f0c5b6a88


More information about the commits mailing list