[riot-commits] [RIOT-OS/RIOT] 9cabdb: core/sched: clean up

Ludwig Ortmann ludwig.ortmann at fu-berlin.de
Sun Jul 13 11:20:20 CEST 2014


  Branch: refs/heads/master
  Home:   https://github.com/RIOT-OS/RIOT
  Commit: 9cabdb3043d17977636e0b2d7295b5aa245fa09e
      https://github.com/RIOT-OS/RIOT/commit/9cabdb3043d17977636e0b2d7295b5aa245fa09e
  Author: Ludwig Ortmann <ludwig.ortmann at fu-berlin.de>
  Date:   2014-07-12 (Sat, 12 Jul 2014)

  Changed paths:
    M core/sched.c

  Log Message:
  -----------
  core/sched: clean up

- remove stray spaces
- remove TODOs:
    - MODULE_HWTIMER is not a module anymore
    - checking for NULL is necessary, at least without API changes:
      `sched_task_exit` sets `sched_active_thread` to `NULL`, then exits,
      afterwards `cpu_switch_context_exit` calls `sched_run`


  Commit: 147c2853654efff6c544149290f508d2ac8e7d6e
      https://github.com/RIOT-OS/RIOT/commit/147c2853654efff6c544149290f508d2ac8e7d6e
  Author: Ludwig Ortmann <ludwig.ortmann at fu-berlin.de>
  Date:   2014-07-12 (Sat, 12 Jul 2014)

  Changed paths:
    M core/sched.c

  Log Message:
  -----------
  core/sched: fix pid/tcb & refactor SCHEDSTATISTICS

pid and tcb_t were compared instead of pid and pid

SCHEDSTATISTICS:
- reduce hwtimer_now calls
- dont use thread_last_pid anymore
- increase readability


  Commit: a585eaf752758753ba18f8839830bf55d4dbb66d
      https://github.com/RIOT-OS/RIOT/commit/a585eaf752758753ba18f8839830bf55d4dbb66d
  Author: Ludwig Ortmann <ludwig.ortmann at fu-berlin.de>
  Date:   2014-07-12 (Sat, 12 Jul 2014)

  Changed paths:
    M core/include/sched.h
    M core/include/thread.h
    M core/sched.c
    M core/thread.c

  Log Message:
  -----------
  core/sched: remove MODULE_NSS helpers (API CHANGE)

remove thread_getlastpid and last_pid from the API, it is unused


  Commit: ad64e62de9cb55ac6e67f8998a9cab80640eb0b8
      https://github.com/RIOT-OS/RIOT/commit/ad64e62de9cb55ac6e67f8998a9cab80640eb0b8
  Author: Ludwig Ortmann <ludwig.ortmann at fu-berlin.de>
  Date:   2014-07-13 (Sun, 13 Jul 2014)

  Changed paths:
    M core/include/sched.h
    M core/include/thread.h
    M core/sched.c
    M core/thread.c

  Log Message:
  -----------
  Merge pull request #1376 from LudwigOrtmann/sched_fixup

core/sched fixup and optimize


Compare: https://github.com/RIOT-OS/RIOT/compare/cdd65cef1c3e...ad64e62de9cb


More information about the commits mailing list