1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-01-18 12:52:44 +01:00
RIOT/cpu/arm_common
René Kijewski 677d690e2b core: introduce thread_yield_higher(), yield less
Fixes #1708.

Currently involuntary preemption causes the current thread not only to
yield for a higher prioritized thread, but all other threads of its own
priority class, too.

This PR adds the function `thread_yield_higher()`, which will yield the
current thread in favor of higher prioritized functions, but not for
threads of its own priority class.

Boards now need to implement `thread_yield_higher()` instead of
`thread_yield()`, but `COREIF_NG` boards are not affected in any way.

`thread_yield()` retains its old meaning: yield for every thread that
has the same or a higher priority.

This PR does not touch the occurrences of `thread_yield()` in the periph
drivers, because the author of this PR did not look into the logic of
the various driver implementations.
2014-10-24 00:09:56 +02:00
..
include doc: fix more license headers 2014-08-27 19:20:49 +02:00
arm_cpu.c core: introduce thread_yield_higher(), yield less 2014-10-24 00:09:56 +02:00
atomic.s doc: use lgplv2.1-short license header instead of lgpl-short-riot 2014-07-31 22:57:20 +02:00
bootloader.c cpu/examples/sys/drivers: reduce scope of variables 2014-09-13 19:03:40 +02:00
common.s cpu: removing tabs from asm files (#1439) 2014-08-02 12:47:02 +02:00
crash.c doc: use lgplv2.1-short license header instead of lgpl-short-riot 2014-07-31 22:57:20 +02:00
gettimeofday.c boards/cpu: fix some warnings 2014-08-05 18:52:26 +02:00
Makefile make: detect their module name automatically 2014-06-17 15:49:32 +02:00
Makefile.include Use subfolders in bin dir 2014-04-09 00:28:14 +02:00
syscalls.c all over the place: use sched_active_pid 2014-08-17 21:04:25 +02:00
VIC.c doc: fix more license headers 2014-08-27 19:20:49 +02:00