[riot-notifications] [RIOT] fix priority comparison in sched_switch (#126)

kaspar030 notifications at github.com
Tue Aug 13 11:15:16 CEST 2013


1. we should be more specific on the commit messages. In this case, a line like "priority comparision goes the wrong way, causing the lower prio thread selected instead of the higher one"? Just a suggestion.

2. How does that go together with
```#define PRIORITY_MIN            SCHED_PRIO_LEVELS-1```
and 
```#define PRIORITY_IDLE           PRIORITY_MIN```
(kernel.h)?

Looks like we're all Linux here, with 0 being the "highest" priority level and SCHED_PRIO_LEVELS the idle thread's priority. Or did this semantic change at some point?


---
Reply to this email directly or view it on GitHub:
https://github.com/RIOT-OS/RIOT/pull/126#issuecomment-22552334
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20130813/4e47b941/attachment.html>


More information about the notifications mailing list