Changeset 4b1d261 in rtems


Ignore:
Timestamp:
Jul 30, 2010, 6:53:06 PM (9 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.11, master
Children:
3bae3f2
Parents:
9d47cd1
Message:

2010-07-30 Gedare Bloom <giddyup44@…>

PR 1599/cpukit

  • posix/src/psignalunblockthread.c, posix/src/pthreadkill.c, rtems/src/signalsend.c, score/include/rtems/score/percpu.h, score/inline/rtems/score/thread.inl, score/src/thread.c, score/src/threadchangepriority.c, score/src/threadclearstate.c, score/src/threaddispatch.c, score/src/threadready.c, score/src/threadresume.c, score/src/threadsetstate.c, score/src/threadstartmultitasking.c, score/src/threadsuspend.c, score/src/threadyieldprocessor.c: Rename _Context_Switch_necessary to _Thread_Dispatch_necessary to more properly reflect the intent.
Location:
cpukit
Files:
16 edited

Legend:

Unmodified
Added
Removed
  • cpukit/ChangeLog

    r9d47cd1 r4b1d261  
     12010-07-30      Gedare Bloom <giddyup44@yahoo.com>
     2
     3        PR 1599/cpukit
     4        * posix/src/psignalunblockthread.c, posix/src/pthreadkill.c,
     5        rtems/src/signalsend.c, score/include/rtems/score/percpu.h,
     6        score/inline/rtems/score/thread.inl, score/src/thread.c,
     7        score/src/threadchangepriority.c, score/src/threadclearstate.c,
     8        score/src/threaddispatch.c, score/src/threadready.c,
     9        score/src/threadresume.c, score/src/threadsetstate.c,
     10        score/src/threadstartmultitasking.c, score/src/threadsuspend.c,
     11        score/src/threadyieldprocessor.c: Rename _Context_Switch_necessary to
     12        _Thread_Dispatch_necessary to more properly reflect the intent.
     13
    1142010-07-30      Vinu Rajashekhar <vinutheraj@gmail.com>
    215
  • cpukit/posix/src/psignalunblockthread.c

    r9d47cd1 r4b1d261  
    114114    } else if ( the_thread->current_state == STATES_READY ) {
    115115      if ( _ISR_Is_in_progress() && _Thread_Is_executing( the_thread ) )
    116         _Context_Switch_necessary = true;
     116        _Thread_Dispatch_necessary = true;
    117117    }
    118118  }
  • cpukit/posix/src/pthreadkill.c

    r9d47cd1 r4b1d261  
    6565
    6666        if ( _ISR_Is_in_progress() && _Thread_Is_executing( the_thread ) )
    67           _Context_Switch_necessary = true;
     67          _Thread_Dispatch_necessary = true;
    6868      }
    6969      _Thread_Enable_dispatch();
  • cpukit/rtems/src/signalsend.c

    r9d47cd1 r4b1d261  
    6666
    6767          if ( _ISR_Is_in_progress() && _Thread_Is_executing( the_thread ) )
    68             _Context_Switch_necessary = true;
     68            _Thread_Dispatch_necessary = true;
    6969        } else {
    7070          _ASR_Post_signals( signal_set, &asr->signals_pending );
  • cpukit/score/include/rtems/score/percpu.h

    r9d47cd1 r4b1d261  
    8686
    8787  /** This is set to true when this CPU needs to run the dispatcher. */
    88   volatile bool dispatch_needed;
     88  volatile bool dispatch_necessary;
    8989
    9090} Per_CPU_Control;
     
    161161#define _CPU_Interrupt_stack_low  _Per_CPU_Information.interrupt_stack_low
    162162#define _CPU_Interrupt_stack_high _Per_CPU_Information.interrupt_stack_high
    163 #define _Context_Switch_necessary _Per_CPU_Information.dispatch_needed
     163#define _Thread_Dispatch_necessary _Per_CPU_Information.dispatch_necessary
    164164
    165165#endif  /* ASM */
  • cpukit/score/inline/rtems/score/thread.inl

    r9d47cd1 r4b1d261  
    259259RTEMS_INLINE_ROUTINE bool _Thread_Is_context_switch_necessary( void )
    260260{
    261   return ( _Context_Switch_necessary );
     261  return ( _Thread_Dispatch_necessary );
    262262}
    263263
     
    352352  if ( are_signals_pending ||
    353353       (!_Thread_Is_heir( executing ) && executing->is_preemptible) ) {
    354     _Context_Switch_necessary = true;
     354    _Thread_Dispatch_necessary = true;
    355355    return true;
    356356  }
  • cpukit/score/src/thread.c

    r9d47cd1 r4b1d261  
    7070    );
    7171
    72   _Context_Switch_necessary = false;
     72  _Thread_Dispatch_necessary = false;
    7373  _Thread_Executing         = NULL;
    7474  _Thread_Heir              = NULL;
  • cpukit/score/src/threadchangepriority.c

    r9d47cd1 r4b1d261  
    138138  if ( !_Thread_Is_executing_also_the_heir() &&
    139139       _Thread_Executing->is_preemptible )
    140     _Context_Switch_necessary = true;
     140    _Thread_Dispatch_necessary = true;
    141141  _ISR_Enable( level );
    142142}
  • cpukit/score/src/threadclearstate.c

    r9d47cd1 r4b1d261  
    9090          if ( _Thread_Executing->is_preemptible ||
    9191               the_thread->current_priority == 0 )
    92             _Context_Switch_necessary = true;
     92            _Thread_Dispatch_necessary = true;
    9393        }
    9494      }
  • cpukit/score/src/threaddispatch.c

    r9d47cd1 r4b1d261  
    9090  executing   = _Thread_Executing;
    9191  _ISR_Disable( level );
    92   while ( _Context_Switch_necessary == true ) {
     92  while ( _Thread_Dispatch_necessary == true ) {
    9393    heir = _Thread_Heir;
    9494    _Thread_Dispatch_disable_level = 1;
    95     _Context_Switch_necessary = false;
     95    _Thread_Dispatch_necessary = false;
    9696    _Thread_Executing = heir;
    9797
  • cpukit/score/src/threadready.c

    r9d47cd1 r4b1d261  
    7373
    7474  if ( !_Thread_Is_executing( heir ) && _Thread_Executing->is_preemptible )
    75     _Context_Switch_necessary = true;
     75    _Thread_Dispatch_necessary = true;
    7676
    7777  _ISR_Enable( level );
  • cpukit/score/src/threadresume.c

    r9d47cd1 r4b1d261  
    8080        if ( _Thread_Executing->is_preemptible ||
    8181             the_thread->current_priority == 0 )
    82           _Context_Switch_necessary = true;
     82          _Thread_Dispatch_necessary = true;
    8383      }
    8484    }
  • cpukit/score/src/threadsetstate.c

    r9d47cd1 r4b1d261  
    8282
    8383  if ( _Thread_Is_executing( the_thread ) )
    84     _Context_Switch_necessary = true;
     84    _Thread_Dispatch_necessary = true;
    8585
    8686  _ISR_Enable( level );
  • cpukit/score/src/threadstartmultitasking.c

    r9d47cd1 r4b1d261  
    6262  _System_state_Set( SYSTEM_STATE_UP );
    6363
    64   _Context_Switch_necessary = false;
     64  _Thread_Dispatch_necessary = false;
    6565
    6666  _Thread_Executing = _Thread_Heir;
  • cpukit/score/src/threadsuspend.c

    r9d47cd1 r4b1d261  
    8080
    8181  if ( _Thread_Is_executing( the_thread ) )
    82     _Context_Switch_necessary = true;
     82    _Thread_Dispatch_necessary = true;
    8383
    8484  _ISR_Enable( level );
  • cpukit/score/src/threadyieldprocessor.c

    r9d47cd1 r4b1d261  
    6868      if ( _Thread_Is_heir( executing ) )
    6969        _Thread_Heir = (Thread_Control *) ready->first;
    70       _Context_Switch_necessary = true;
     70      _Thread_Dispatch_necessary = true;
    7171    }
    7272    else if ( !_Thread_Is_heir( executing ) )
    73       _Context_Switch_necessary = true;
     73      _Thread_Dispatch_necessary = true;
    7474
    7575  _ISR_Enable( level );
Note: See TracChangeset for help on using the changeset viewer.