diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2014-05-14 16:04:10 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2014-05-14 17:01:22 +0200 |
commit | 2369b10a71d4a0aa0be3bbfc51f1fb402d8427a7 (patch) | |
tree | 166673f1e052dbc479cc2eef2e5ef94705eec6bc /cpukit/score/src/smp.c | |
parent | score: _Scheduler_priority_Ready_queue_requeue() (diff) | |
download | rtems-2369b10a71d4a0aa0be3bbfc51f1fb402d8427a7.tar.bz2 |
score: Add and use _Scheduler_Get_context()
Diffstat (limited to 'cpukit/score/src/smp.c')
-rw-r--r-- | cpukit/score/src/smp.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/cpukit/score/src/smp.c b/cpukit/score/src/smp.c index af0eb183e1..b9d4b0a6cc 100644 --- a/cpukit/score/src/smp.c +++ b/cpukit/score/src/smp.c @@ -58,10 +58,11 @@ static void _SMP_Start_processors( uint32_t cpu_count ) cpu->started = started; if ( started ) { - Scheduler_Context *scheduler_context = assignment->scheduler->context; + Scheduler_Context *context = + _Scheduler_Get_context( assignment->scheduler ); - ++scheduler_context->processor_count; - cpu->scheduler_context = scheduler_context; + ++context->processor_count; + cpu->scheduler_context = context; } } } |