Changeset 1ada3e55 in rtems


Ignore:
Timestamp:
Feb 15, 2020, 10:09:16 AM (6 months ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
5, master
Children:
51614bd5
Parents:
ba74ebde
git-author:
Sebastian Huber <sebastian.huber@…> (02/15/20 10:09:16)
git-committer:
Sebastian Huber <sebastian.huber@…> (02/25/20 06:18:35)
Message:

score: Add _SMP_Need_inter_processor_interrupts()

Test for the proper system condition instead of using the
rtems_configuration_is_smp_enabled() workaround.

Update #3876.

Location:
cpukit
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • cpukit/include/rtems/score/smpimpl.h

    rba74ebde r1ada3e55  
    325325}
    326326
     327/**
     328 * @brief Indicate if inter-processor interrupts are needed.
     329 *
     330 * @return True if inter-processor interrupts are needed for the correct system
     331 * operation, otherwise false.
     332 */
     333RTEMS_INLINE_ROUTINE const bool _SMP_Need_inter_processor_interrupts( void )
     334{
     335  /*
     336   * Use the configured processor maximum instead of the actual to allow
     337   * testing on uni-processor systems.
     338   */
     339  return _SMP_Processor_configured_maximum > 1;
     340}
     341
    327342/** @} */
    328343
  • cpukit/rtems/src/taskmode.c

    rba74ebde r1ada3e55  
    2424#include <rtems/rtems/signalimpl.h>
    2525#include <rtems/score/schedulerimpl.h>
     26#include <rtems/score/smpimpl.h>
    2627#include <rtems/score/threadimpl.h>
    2728#include <rtems/config.h>
     
    5960      && _Modes_Get_interrupt_level( mode_set ) != 0
    6061#if CPU_ENABLE_ROBUST_THREAD_DISPATCH == FALSE
    61       && rtems_configuration_is_smp_enabled()
     62      && _SMP_Need_inter_processor_interrupts()
    6263#endif
    6364  ) {
  • cpukit/score/src/threaddispatch.c

    rba74ebde r1ada3e55  
    266266    !_ISR_Is_enabled( level )
    267267#if defined(RTEMS_SMP) && CPU_ENABLE_ROBUST_THREAD_DISPATCH == FALSE
    268       && rtems_configuration_is_smp_enabled()
     268      && _SMP_Need_inter_processor_interrupts()
    269269#endif
    270270  ) {
  • cpukit/score/src/threadinitialize.c

    rba74ebde r1ada3e55  
    7373    config->isr_level != 0
    7474#if CPU_ENABLE_ROBUST_THREAD_DISPATCH == FALSE
    75       && rtems_configuration_is_smp_enabled()
     75      && _SMP_Need_inter_processor_interrupts()
    7676#endif
    7777  ) {
Note: See TracChangeset for help on using the changeset viewer.