[riot-commits] [RIOT-OS/RIOT] a21c3f: core: remove unnecessary tests in sched.c

Ludwig Ortmann ludwig.ortmann at fu-berlin.de
Wed Jun 18 13:09:46 CEST 2014


  Branch: refs/heads/master
  Home:   https://github.com/RIOT-OS/RIOT
  Commit: a21c3f45bc9b6705763d2d79e627aebff4b312e5
      https://github.com/RIOT-OS/RIOT/commit/a21c3f45bc9b6705763d2d79e627aebff4b312e5
  Author: René Kijewski <rene.kijewski at fu-berlin.de>
  Date:   2014-06-10 (Tue, 10 Jun 2014)

  Changed paths:
    M core/sched.c

  Log Message:
  -----------
  core: remove unnecessary tests in sched.c

The scheduling gets activated by `kernel_init()` calling
`cpu_switch_context_exit()`. Before this `sched_run()` won't be called.
When it gets called, at least the main thread and the idle thread are
spawned. The idle thread won't die / get killed. So there always is at
least one thread in `runqueue_bitcache`.

Closes #19.


  Commit: 564f980cf494f48d45ea6ac5e80abc4160fdb0b8
      https://github.com/RIOT-OS/RIOT/commit/564f980cf494f48d45ea6ac5e80abc4160fdb0b8
  Author: Ludwig Ortmann <ludwig.ortmann at fu-berlin.de>
  Date:   2014-06-18 (Wed, 18 Jun 2014)

  Changed paths:
    M core/sched.c

  Log Message:
  -----------
  Merge pull request #1306 from Kijewski/issue-19

core: remove unnecessary tests in sched.c


Compare: https://github.com/RIOT-OS/RIOT/compare/dd5ac2409120...564f980cf494


More information about the commits mailing list