[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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user