[riot-commits] [RIOT-OS/RIOT] a6fd5b: core: imply current_prio in `sched_switch()`

René Kijewski kijewski at mi.fu-berlin.de
Tue Jun 3 15:59:24 CEST 2014


  Branch: refs/heads/master
  Home:   https://github.com/RIOT-OS/RIOT
  Commit: a6fd5bff924f8e1d259dac72e9eb60ffca156201
      https://github.com/RIOT-OS/RIOT/commit/a6fd5bff924f8e1d259dac72e9eb60ffca156201
  Author: René Kijewski <rene.kijewski at fu-berlin.de>
  Date:   2014-05-24 (Sat, 24 May 2014)

  Changed paths:
    M core/include/sched.h
    M core/mutex.c
    M core/sched.c
    M core/thread.c
    M sys/posix/pthread/pthread.c
    M sys/posix/pthread/pthread_cond.c
    M sys/posix/pthread/pthread_rwlock.c
    M sys/posix/semaphore.c

  Log Message:
  -----------
  core: imply current_prio in `sched_switch()`

There is no need to supply the current priority to `sched_switch()`,
when this function can easily tell the value of
`active_thread->priority` itself.


  Commit: 05a4bf7f0406f3d786fceec75027cc69c30be866
      https://github.com/RIOT-OS/RIOT/commit/05a4bf7f0406f3d786fceec75027cc69c30be866
  Author: René Kijewski <kijewski at mi.fu-berlin.de>
  Date:   2014-06-03 (Tue, 03 Jun 2014)

  Changed paths:
    M core/include/sched.h
    M core/mutex.c
    M core/sched.c
    M core/thread.c
    M sys/posix/pthread/pthread.c
    M sys/posix/pthread/pthread_cond.c
    M sys/posix/pthread/pthread_rwlock.c
    M sys/posix/semaphore.c

  Log Message:
  -----------
  Merge pull request #1057 from Kijewski/sched_switch-current_prio

core: imply current_prio in `sched_switch()`


Compare: https://github.com/RIOT-OS/RIOT/compare/eb75093cfcae...05a4bf7f0406


More information about the commits mailing list