From 76d119857f62ceff860439ae8bbf3fa29757dc87 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Fri, 7 Jul 2017 07:45:57 +0200 Subject: score: Introduce _SMP_Get_online_processors() Update #3059. --- cpukit/score/src/threadinitialize.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'cpukit/score/src/threadinitialize.c') diff --git a/cpukit/score/src/threadinitialize.c b/cpukit/score/src/threadinitialize.c index 803ee7b646..3230eac2fe 100644 --- a/cpukit/score/src/threadinitialize.c +++ b/cpukit/score/src/threadinitialize.c @@ -248,7 +248,10 @@ bool _Thread_Initialize( RTEMS_STATIC_ASSERT( THREAD_SCHEDULER_BLOCKED == 0, Scheduler_state ); the_thread->Scheduler.home = scheduler; _ISR_lock_Initialize( &the_thread->Scheduler.Lock, "Thread Scheduler" ); - _Processor_mask_Assign( &the_thread->Scheduler.Affinity, &_SMP_Online_processors ); + _Processor_mask_Assign( + &the_thread->Scheduler.Affinity, + _SMP_Get_online_processors() + ); _ISR_lock_Initialize( &the_thread->Wait.Lock.Default, "Thread Wait Default" ); _Thread_queue_Gate_open( &the_thread->Wait.Lock.Tranquilizer ); _RBTree_Initialize_node( &the_thread->Wait.Link.Registry_node ); -- cgit v1.2.3