summaryrefslogtreecommitdiffstats
path: root/cpukit/score/src/smp.c
diff options
context:
space:
mode:
Diffstat (limited to 'cpukit/score/src/smp.c')
-rw-r--r--cpukit/score/src/smp.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/cpukit/score/src/smp.c b/cpukit/score/src/smp.c
index f383f6de97..c880d7eb5d 100644
--- a/cpukit/score/src/smp.c
+++ b/cpukit/score/src/smp.c
@@ -66,11 +66,15 @@ static void _SMP_Start_processors( uint32_t cpu_count )
cpu->online = started;
if ( started ) {
- Scheduler_Context *context =
- _Scheduler_Get_context( assignment->scheduler );
+ const Scheduler_Control *scheduler;
+ Scheduler_Context *context;
+
+ scheduler = assignment->scheduler;
+ context = _Scheduler_Get_context( scheduler );
++context->processor_count;
- cpu->scheduler_context = context;
+ cpu->Scheduler.control = scheduler;
+ cpu->Scheduler.context = context;
_Processor_mask_Set( _SMP_Online_processors, cpu_index );
}