From 16832b0d9e1f6448a57b6f5f2909cff7ad360706 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Tue, 29 Mar 2016 12:06:55 +0200 Subject: score: Fix multiprocessing thread proxies We must provide thread queue heads for the thread wait information for each thread proxy (thread queue heads were introduced by d7665823b208daefb6855591d808e1f3075cedcb). The thread proxy must be allocated before the enqueue operation. --- cpukit/score/src/threadinitialize.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'cpukit/score/src/threadinitialize.c') diff --git a/cpukit/score/src/threadinitialize.c b/cpukit/score/src/threadinitialize.c index bcf03bf833..18d29f8d1a 100644 --- a/cpukit/score/src/threadinitialize.c +++ b/cpukit/score/src/threadinitialize.c @@ -160,9 +160,7 @@ bool _Thread_Initialize( the_thread->Start.budget_algorithm = budget_algorithm; the_thread->Start.budget_callout = budget_callout; - _ISR_lock_Initialize( &the_thread->Timer.Lock, "Thread Timer" ); - the_thread->Timer.header = &cpu->Watchdog.Header[ PER_CPU_WATCHDOG_RELATIVE ]; - _Watchdog_Preinitialize( &the_thread->Timer.Watchdog, cpu ); + _Thread_Timer_initialize( &the_thread->Timer, cpu ); switch ( budget_algorithm ) { case THREAD_CPU_BUDGET_ALGORITHM_NONE: -- cgit v1.2.3