Changeset 569b3f4 in rtems


Ignore:
Timestamp:
Jun 24, 2010, 10:40:32 PM (9 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.11, master
Children:
f9a4e80
Parents:
4d32a76d
Message:

2010-06-24 Gedare Bloom <giddyup44@…>

PR 1589/cpukit

  • score/Makefile.am, score/include/rtems/score/thread.h, score/inline/rtems/score/thread.inl: Make _Thread_Evaluate_mode() an inline method. It is only used in one place and relatively simple.
  • score/src/threadevaluatemode.c: Removed.
Location:
cpukit
Files:
1 deleted
4 edited

Legend:

Unmodified
Added
Removed
  • cpukit/ChangeLog

    r4d32a76d r569b3f4  
     12010-06-24      Gedare Bloom <giddyup44@yahoo.com>
     2
     3        PR 1589/cpukit
     4        * score/Makefile.am, score/include/rtems/score/thread.h,
     5        score/inline/rtems/score/thread.inl: Make _Thread_Evaluate_mode() an
     6        inline method. It is only used in one place and relatively simple.
     7        * score/src/threadevaluatemode.c: Removed.
     8
    192010-06-24      Joel Sherrill <joel.sherrilL@OARcorp.com>
    210
  • cpukit/score/Makefile.am

    r4d32a76d r569b3f4  
    142142libscore_a_SOURCES += src/thread.c src/threadchangepriority.c \
    143143    src/threadclearstate.c src/threadclose.c src/threadcreateidle.c \
    144     src/threaddelayended.c src/threaddispatch.c src/threadevaluatemode.c \
     144    src/threaddelayended.c src/threaddispatch.c \
    145145    src/threadget.c src/threadhandler.c src/threadinitialize.c \
    146146    src/threadloadenv.c src/threadready.c src/threadreset.c \
  • cpukit/score/include/rtems/score/thread.h

    r4d32a76d r569b3f4  
    750750);
    751751
    752 /**
    753  *  This routine evaluates the current scheduling information for the
    754  *  system and determines if a context switch is required.  This
    755  *  is usually called after changing an execution mode such as preemptability
    756  *  for a thread.
    757  */
    758 bool _Thread_Evaluate_mode( void );
    759 
    760752#if (CPU_PROVIDES_IDLE_THREAD_BODY == FALSE)
    761753/**
  • cpukit/score/inline/rtems/score/thread.inl

    r4d32a76d r569b3f4  
    333333}
    334334
     335/**
     336 *  This routine evaluates the current scheduling information for the
     337 *  system and determines if a context switch is required.  This
     338 *  is usually called after changing an execution mode such as preemptability
     339 *  for a thread.
     340 */
     341RTEMS_INLINE_ROUTINE bool _Thread_Evaluate_mode( void )
     342{
     343  Thread_Control     *executing;
     344
     345  executing = _Thread_Executing;
     346
     347  if ( !_States_Is_ready( executing->current_state ) ||
     348       ( !_Thread_Is_heir( executing ) && executing->is_preemptible ) ) {
     349    _Context_Switch_necessary = true;
     350    return true;
     351  }
     352
     353  return false;
     354}
     355
    335356/**@}*/
    336357
Note: See TracChangeset for help on using the changeset viewer.