diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2017-07-04 07:28:44 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2017-07-07 07:28:35 +0200 |
commit | 6b1d8c7865268071a8de6ba6343159049a8b0e56 (patch) | |
tree | 46083cabb446ad2d1fb3e65d6d9d2f2165446f98 /cpukit/rtems/src/scheduleraddprocessor.c | |
parent | score: Move processor affinity to Thread_Control (diff) | |
download | rtems-6b1d8c7865268071a8de6ba6343159049a8b0e56.tar.bz2 |
score: Add processor set to scheduler context
Replace the simple processor count with the processor set owned by the
scheduler instance.
Update #3059.
Diffstat (limited to 'cpukit/rtems/src/scheduleraddprocessor.c')
-rw-r--r-- | cpukit/rtems/src/scheduleraddprocessor.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cpukit/rtems/src/scheduleraddprocessor.c b/cpukit/rtems/src/scheduleraddprocessor.c index 505b8cc9dc..56d6811afd 100644 --- a/cpukit/rtems/src/scheduleraddprocessor.c +++ b/cpukit/rtems/src/scheduleraddprocessor.c @@ -95,7 +95,7 @@ rtems_status_code rtems_scheduler_add_processor( _ISR_lock_ISR_disable( &lock_context ); _Scheduler_Acquire_critical( scheduler, &lock_context ); - ++scheduler_context->processor_count; + _Processor_mask_Set( &scheduler_context->Processors, cpu_index ); cpu->Scheduler.control = scheduler; cpu->Scheduler.context = scheduler_context; ( *scheduler->Operations.add_processor )( scheduler, idle ); |