From 6b1d8c7865268071a8de6ba6343159049a8b0e56 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Tue, 4 Jul 2017 07:28:44 +0200 Subject: score: Add processor set to scheduler context Replace the simple processor count with the processor set owned by the scheduler instance. Update #3059. --- cpukit/score/src/smp.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'cpukit/score/src/smp.c') diff --git a/cpukit/score/src/smp.c b/cpukit/score/src/smp.c index a69b7ed46a..1a29e37d15 100644 --- a/cpukit/score/src/smp.c +++ b/cpukit/score/src/smp.c @@ -97,11 +97,10 @@ static void _SMP_Start_processors( uint32_t cpu_count ) scheduler = assignment->scheduler; context = _Scheduler_Get_context( scheduler ); - ++context->processor_count; + _Processor_mask_Set( &_SMP_Online_processors, cpu_index ); + _Processor_mask_Set( &context->Processors, cpu_index ); cpu->Scheduler.control = scheduler; cpu->Scheduler.context = context; - - _Processor_mask_Set( &_SMP_Online_processors, cpu_index ); } } } -- cgit v1.2.3