From 1fac361fb9d4ec7f5b4ad2801ee6ff5858c82942 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Mon, 24 Mar 2014 08:51:37 +0100 Subject: score: PR2174: Add workaround Add _Scheduler_FIXME_thread_priority_queues_are_broken to prevent thread priority queues in case an EDF scheduler is used. --- cpukit/score/src/threadq.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'cpukit/score/src/threadq.c') diff --git a/cpukit/score/src/threadq.c b/cpukit/score/src/threadq.c index 463330a2f6..69b687fe1c 100644 --- a/cpukit/score/src/threadq.c +++ b/cpukit/score/src/threadq.c @@ -20,6 +20,7 @@ #include #include +#include void _Thread_queue_Initialize( Thread_queue_Control *the_thread_queue, @@ -28,6 +29,10 @@ void _Thread_queue_Initialize( uint32_t timeout_status ) { + if ( _Scheduler_FIXME_thread_priority_queues_are_broken ) { + the_discipline = THREAD_QUEUE_DISCIPLINE_FIFO; + } + the_thread_queue->state = state; the_thread_queue->discipline = the_discipline; the_thread_queue->timeout_status = timeout_status; -- cgit v1.2.3