Changeset 76d1198 in rtems


Ignore:
Timestamp:
Jul 7, 2017, 5:45:57 AM (2 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
master
Children:
16347a6
Parents:
0232b28
git-author:
Sebastian Huber <sebastian.huber@…> (07/07/17 05:45:57)
git-committer:
Sebastian Huber <sebastian.huber@…> (07/07/17 05:55:03)
Message:

score: Introduce _SMP_Get_online_processors()

Update #3059.

Files:
7 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/powerpc/qoriq/startup/bsprestart.c

    r0232b28 r76d1198  
    101101{
    102102  qoriq.pic.ipidr[RESTART_IPI_INDEX].reg =
    103     _Processor_mask_To_uint32_t(&_SMP_Online_processors, 0);
     103    _Processor_mask_To_uint32_t(_SMP_Get_online_processors(), 0);
    104104  ppc_synchronize_data();
    105105  ppc_synchronize_instructions();
  • c/src/lib/libbsp/shared/clockdrv_shell.h

    r0232b28 r76d1198  
    8181    if ( _Per_CPU_Is_boot_processor( cpu ) ) {
    8282      rtems_timecounter_tick();
    83     } else if ( _Processor_mask_Is_set( &_SMP_Online_processors, cpu_index ) ) {
     83    } else if ( _Processor_mask_Is_set( _SMP_Get_online_processors(), cpu_index ) ) {
    8484      _Watchdog_Tick( cpu );
    8585    }
     
    228228
    229229  #ifdef RTEMS_SMP
    230     Clock_driver_support_set_interrupt_affinity( &_SMP_Online_processors );
     230    Clock_driver_support_set_interrupt_affinity(
     231      _SMP_Get_online_processors()
     232    );
    231233  #endif
    232234
  • c/src/lib/libbsp/sparc/shared/timer/gptimer.c

    r0232b28 r76d1198  
    452452                }
    453453                drvmgr_interrupt_set_affinity(priv->dev, tindex,
    454                                               _SMP_Online_processors);
     454                                              _SMP_Get_online_processors());
    455455        }
    456456#endif
  • cpukit/score/include/rtems/score/smpimpl.h

    r0232b28 r76d1198  
    336336#endif
    337337
     338RTEMS_INLINE_ROUTINE const Processor_mask *_SMP_Get_online_processors( void )
     339{
     340#if defined(RTEMS_SMP)
     341  return &_SMP_Online_processors;
     342#else
     343  return &_Processor_mask_The_one_and_only.
     344#endif
     345}
     346
    338347/** @} */
    339348
  • cpukit/score/src/smpmulticastaction.c

    r0232b28 r76d1198  
    107107
    108108  if( cpus == NULL ) {
    109     _Processor_mask_Assign( &targets, &_SMP_Online_processors );
     109    _Processor_mask_Assign( &targets, _SMP_Get_online_processors() );
    110110  } else {
    111111    _Processor_mask_Zero( &targets );
  • cpukit/score/src/threadinitialize.c

    r0232b28 r76d1198  
    249249  the_thread->Scheduler.home = scheduler;
    250250  _ISR_lock_Initialize( &the_thread->Scheduler.Lock, "Thread Scheduler" );
    251   _Processor_mask_Assign( &the_thread->Scheduler.Affinity, &_SMP_Online_processors );
     251  _Processor_mask_Assign(
     252    &the_thread->Scheduler.Affinity,
     253    _SMP_Get_online_processors()
     254   );
    252255  _ISR_lock_Initialize( &the_thread->Wait.Lock.Default, "Thread Wait Default" );
    253256  _Thread_queue_Gate_open( &the_thread->Wait.Lock.Tranquilizer );
  • testsuites/smptests/smpipi01/init.c

    r0232b28 r76d1198  
    163163  for (cpu_index = 0; cpu_index < cpu_count; ++cpu_index) {
    164164    rtems_test_assert(
    165       _Processor_mask_Is_set(&_SMP_Online_processors, cpu_index)
     165      _Processor_mask_Is_set(_SMP_Get_online_processors(), cpu_index)
    166166    );
    167167
     
    177177  for (; cpu_index < CPU_COUNT; ++cpu_index) {
    178178    rtems_test_assert(
    179       !_Processor_mask_Is_set(&_SMP_Online_processors, cpu_index)
     179      !_Processor_mask_Is_set(_SMP_Get_online_processors(), cpu_index)
    180180    );
    181181  }
Note: See TracChangeset for help on using the changeset viewer.