diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2016-04-19 13:39:00 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2016-04-21 07:29:39 +0200 |
commit | f05eeb2091803b17f89045a685028e9e403f06eb (patch) | |
tree | 0773deca2b81089746cf1a4e7c8725ab0ab89ca8 /cpukit/score/src | |
parent | score: Introduce _Thread_queue_Flush_critical() (diff) | |
download | rtems-f05eeb2091803b17f89045a685028e9e403f06eb.tar.bz2 |
score: Simplify _Objects_Initialize_information()
Remove unused supports_global parameter. Convert
_Objects_Initialize_information() to a macro to avoid use of
RTEMS_MULTIPROCESSING define for each caller.
Diffstat (limited to 'cpukit/score/src')
-rw-r--r-- | cpukit/score/src/apimutex.c | 6 | ||||
-rw-r--r-- | cpukit/score/src/objectinitializeinformation.c | 3 | ||||
-rw-r--r-- | cpukit/score/src/thread.c | 16 |
3 files changed, 4 insertions, 21 deletions
diff --git a/cpukit/score/src/apimutex.c b/cpukit/score/src/apimutex.c index 1ac505220a..a098edbd61 100644 --- a/cpukit/score/src/apimutex.c +++ b/cpukit/score/src/apimutex.c @@ -36,12 +36,8 @@ void _API_Mutex_Initialization( maximum_mutexes, /* maximum objects of this class */ sizeof( API_Mutex_Control ), /* size of this object's control block */ false, /* true if the name is a string */ - 0 /* maximum length of an object name */ -#if defined(RTEMS_MULTIPROCESSING) - , - false, /* true if this is a global object class */ + 0, /* maximum length of an object name */ NULL /* Proxy extraction support callout */ -#endif ); } diff --git a/cpukit/score/src/objectinitializeinformation.c b/cpukit/score/src/objectinitializeinformation.c index 3149bb1df0..dc8a106fa5 100644 --- a/cpukit/score/src/objectinitializeinformation.c +++ b/cpukit/score/src/objectinitializeinformation.c @@ -24,7 +24,7 @@ #include <rtems/score/sysstate.h> #include <rtems/score/wkspace.h> -void _Objects_Initialize_information( +void _Objects_Do_initialize_information( Objects_Information *information, Objects_APIs the_api, uint16_t the_class, @@ -34,7 +34,6 @@ void _Objects_Initialize_information( uint32_t maximum_name_length #if defined(RTEMS_MULTIPROCESSING) , - bool supports_global, Objects_Thread_queue_Extract_callout extract #endif ) diff --git a/cpukit/score/src/thread.c b/cpukit/score/src/thread.c index 68a728c385..83e98cbab2 100644 --- a/cpukit/score/src/thread.c +++ b/cpukit/score/src/thread.c @@ -51,10 +51,6 @@ void _Thread_Initialize_information( uint32_t maximum, bool is_string, uint32_t maximum_name_length -#if defined(RTEMS_MULTIPROCESSING) - , - bool supports_global -#endif ) { _Objects_Initialize_information( @@ -64,12 +60,8 @@ void _Thread_Initialize_information( maximum, _Thread_Control_size, is_string, - maximum_name_length - #if defined(RTEMS_MULTIPROCESSING) - , - supports_global, - NULL - #endif + maximum_name_length, + NULL ); _Freechain_Initialize( @@ -116,10 +108,6 @@ void _Thread_Handler_initialization(void) _Thread_Get_maximum_internal_threads(), false, /* true if names for this object are strings */ 8 /* maximum length of each object's name */ - #if defined(RTEMS_MULTIPROCESSING) - , - false /* true if this is a global object class */ - #endif ); } |