[riot-commits] [RIOT-OS/RIOT] 2cb416: all over the place: use sched_active_pid

René Kijewski kijewski at mi.fu-berlin.de
Thu Aug 21 19:09:41 CEST 2014


  Branch: refs/heads/master
  Home:   https://github.com/RIOT-OS/RIOT
  Commit: 2cb4166c3ec29d91279feddf3041dc66ae59e048
      https://github.com/RIOT-OS/RIOT/commit/2cb4166c3ec29d91279feddf3041dc66ae59e048
  Author: René Kijewski <rene.kijewski at fu-berlin.de>
  Date:   2014-08-17 (Sun, 17 Aug 2014)

  Changed paths:
    M boards/avsextrem/drivers/avsextrem-smb380.c
    M core/include/thread.h
    M core/sched.c
    M core/thread.c
    M cpu/arm_common/syscalls.c
    M cpu/lpc1768/syscalls.c
    M cpu/nrf51822/syscalls.c
    M cpu/sam3x8e/syscalls.c
    M cpu/stm32f0/syscalls.c
    M cpu/stm32f3/syscalls.c
    M cpu/stm32f4/syscalls.c
    M drivers/cc110x/cc1100_phy.c
    M sys/posix/pthread/pthread_barrier.c
    M sys/posix/pthread/pthread_cond.c
    M sys/posix/pthread/pthread_rwlock.c

  Log Message:
  -----------
  all over the place: use sched_active_pid

In many places we needlessly use `sched_active_thread->pid` whilst we
already have `sched_active_pid` with the same value, and one less
indirection.

`thread_getpid()` is made `static inline` so that there is no penalty in
using this function over accessing `sched_active_pid` directly.


  Commit: 639dae4a1d540d0cbbbb0772bd90aeef56c0b650
      https://github.com/RIOT-OS/RIOT/commit/639dae4a1d540d0cbbbb0772bd90aeef56c0b650
  Author: René Kijewski <kijewski at mi.fu-berlin.de>
  Date:   2014-08-21 (Thu, 21 Aug 2014)

  Changed paths:
    M boards/avsextrem/drivers/avsextrem-smb380.c
    M core/include/thread.h
    M core/sched.c
    M core/thread.c
    M cpu/arm_common/syscalls.c
    M cpu/lpc1768/syscalls.c
    M cpu/nrf51822/syscalls.c
    M cpu/sam3x8e/syscalls.c
    M cpu/stm32f0/syscalls.c
    M cpu/stm32f3/syscalls.c
    M cpu/stm32f4/syscalls.c
    M drivers/cc110x/cc1100_phy.c
    M sys/posix/pthread/pthread_barrier.c
    M sys/posix/pthread/pthread_cond.c
    M sys/posix/pthread/pthread_rwlock.c

  Log Message:
  -----------
  Merge pull request #1575 from Kijewski/use-sched_active_pid

all over the place: use sched_active_pid


Compare: https://github.com/RIOT-OS/RIOT/compare/0ea5f947542d...639dae4a1d54


More information about the commits mailing list