diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2013-07-24 15:14:48 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2013-07-26 11:55:44 +0200 |
commit | 5618c37a7a49b7ddde7bb6f7fda8c10616779c05 (patch) | |
tree | f6f711c7823171dd927104573528d61494ec3df6 /cpukit/score/src/thread.c | |
parent | score: Create prioritybitmap implementation header (diff) | |
download | rtems-5618c37a7a49b7ddde7bb6f7fda8c10616779c05.tar.bz2 |
score: Create thread implementation header
Move implementation specific parts of thread.h and thread.inl into new
header file threadimpl.h. The thread.h contains now only the
application visible API.
Remove superfluous header file includes from various files.
Diffstat (limited to 'cpukit/score/src/thread.c')
-rw-r--r-- | cpukit/score/src/thread.c | 23 |
1 files changed, 2 insertions, 21 deletions
diff --git a/cpukit/score/src/thread.c b/cpukit/score/src/thread.c index 391ea52665..9d2301b156 100644 --- a/cpukit/score/src/thread.c +++ b/cpukit/score/src/thread.c @@ -18,26 +18,11 @@ #include "config.h" #endif -#include <rtems/system.h> -#include <rtems/config.h> -#include <rtems/score/apiext.h> -#include <rtems/score/context.h> +#include <rtems/score/threadimpl.h> #include <rtems/score/interr.h> -#include <rtems/score/isr.h> -#include <rtems/score/object.h> -#include <rtems/score/priority.h> -#include <rtems/score/scheduler.h> -#include <rtems/score/states.h> #include <rtems/score/sysstate.h> -#include <rtems/score/thread.h> -#include <rtems/score/threadq.h> -#include <rtems/score/wkspace.h> #include <rtems/config.h> -#if defined(RTEMS_SMP) - #include <rtems/bspsmp.h> -#endif - void _Thread_Handler_initialization(void) { uint32_t ticks_per_timeslice = @@ -83,11 +68,7 @@ void _Thread_Handler_initialization(void) * per CPU in an SMP system. In addition, if this is a loosely * coupled multiprocessing system, account for the MPCI Server Thread. */ - #if defined(RTEMS_SMP) - maximum_internal_threads = rtems_configuration_get_maximum_processors(); - #else - maximum_internal_threads = 1; - #endif + maximum_internal_threads = rtems_configuration_get_maximum_processors(); #if defined(RTEMS_MULTIPROCESSING) if ( _System_state_Is_multiprocessing ) |