[kernel][thread] Hack thread_is_realtime to ignore thread that don't have a high priority

Allow setting the realtime flag on low priority threads to disable the
tick without also loosing ipi interrupts.

Change-Id: Ia30e4d20105a65945918fc996c3114c3852963a9
This commit is contained in:
Arve Hjønnevåg
2015-04-20 15:50:44 -07:00
parent 8240cfbb9d
commit 071878c104

View File

@@ -236,7 +236,7 @@ status_t thread_set_real_time(thread_t *t)
static bool thread_is_realtime(thread_t *t)
{
return !!(t->flags & THREAD_FLAG_REAL_TIME);
return (t->flags & THREAD_FLAG_REAL_TIME) && t->priority > DEFAULT_PRIORITY;
}
static bool thread_is_idle(thread_t *t)