2008-08-07 Joel Sherrill <joel.sherrill@OARcorp.com>

* score/include/rtems/score/sysstate.h,
	score/inline/rtems/score/sysstate.inl, score/src/thread.c: Make
	_System_state_Is_multiprocessing unused when multiprocessing is not
	enabled. Saves one more variable from single processor configuration.
This commit is contained in:
Joel Sherrill
2008-08-07 18:23:48 +00:00
parent a96504330e
commit 22ce088191
4 changed files with 16 additions and 1 deletions

View File

@@ -1,3 +1,10 @@
2008-08-07 Joel Sherrill <joel.sherrill@OARcorp.com>
* score/include/rtems/score/sysstate.h,
score/inline/rtems/score/sysstate.inl, score/src/thread.c: Make
_System_state_Is_multiprocessing unused when multiprocessing is not
enabled. Saves one more variable from single processor configuration.
2008-08-07 Chris Johns <chrisj@rtems.org> 2008-08-07 Chris Johns <chrisj@rtems.org>
* libcsupport/src/_rename_r.c: Fixed return code bug. Add a check * libcsupport/src/_rename_r.c: Fixed return code bug. Add a check

View File

@@ -64,11 +64,13 @@ typedef enum {
/** This defines the highest value system state. */ /** This defines the highest value system state. */
#define SYSTEM_STATE_CODES_LAST SYSTEM_STATE_FAILED #define SYSTEM_STATE_CODES_LAST SYSTEM_STATE_FAILED
#if defined(RTEMS_MULTIPROCESSING)
/** /**
* The following variable indicates whether or not this is * The following variable indicates whether or not this is
* an multiprocessing system. * an multiprocessing system.
*/ */
SCORE_EXTERN boolean _System_state_Is_multiprocessing; SCORE_EXTERN boolean _System_state_Is_multiprocessing;
#endif
/** /**
* The following variable contains the current system state. * The following variable contains the current system state.

View File

@@ -33,7 +33,9 @@ RTEMS_INLINE_ROUTINE void _System_state_Handler_initialization (
) )
{ {
_System_state_Current = SYSTEM_STATE_BEFORE_INITIALIZATION; _System_state_Current = SYSTEM_STATE_BEFORE_INITIALIZATION;
_System_state_Is_multiprocessing = is_multiprocessing; #if defined(RTEMS_MULTIPROCESSING)
_System_state_Is_multiprocessing = is_multiprocessing;
#endif
} }
/** /**

View File

@@ -99,7 +99,11 @@ void _Thread_Handler_initialization(
&_Thread_Internal_information, &_Thread_Internal_information,
OBJECTS_INTERNAL_API, OBJECTS_INTERNAL_API,
OBJECTS_INTERNAL_THREADS, OBJECTS_INTERNAL_THREADS,
#if defined(RTEMS_MULTIPROCESSING)
( _System_state_Is_multiprocessing ) ? 2 : 1, ( _System_state_Is_multiprocessing ) ? 2 : 1,
#else
1,
#endif
sizeof( Thread_Control ), sizeof( Thread_Control ),
/* size of this object's control block */ /* size of this object's control block */
TRUE, /* TRUE if names for this object are strings */ TRUE, /* TRUE if names for this object are strings */