diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2016-03-29 12:06:55 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2016-03-29 12:06:55 +0200 |
commit | 16832b0d9e1f6448a57b6f5f2909cff7ad360706 (patch) | |
tree | 772708cb85a765b1a3c5b0437a14027c581b7e28 /cpukit/score/src/threadinitialize.c | |
parent | score: Allow MPCI packet receive function to block (diff) | |
download | rtems-16832b0d9e1f6448a57b6f5f2909cff7ad360706.tar.bz2 |
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.
Diffstat (limited to 'cpukit/score/src/threadinitialize.c')
-rw-r--r-- | cpukit/score/src/threadinitialize.c | 4 |
1 files changed, 1 insertions, 3 deletions
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: |