diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2014-04-03 15:03:35 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2014-04-04 11:01:18 +0200 |
commit | 24934e36e2513f972510d7c746103be1f766dc6a (patch) | |
tree | 66e3c8840cec6c1262f142e25ec545926140dbf9 /cpukit/score/src/threadstart.c | |
parent | score: Add and use Scheduler_simple_Control (diff) | |
download | rtems-24934e36e2513f972510d7c746103be1f766dc6a.tar.bz2 |
score: Add scheduler control to scheduler ops
Scheduler operations must be free of a global scheduler context to
enable partitioned/clustered scheduling.
Diffstat (limited to 'cpukit/score/src/threadstart.c')
-rw-r--r-- | cpukit/score/src/threadstart.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/cpukit/score/src/threadstart.c b/cpukit/score/src/threadstart.c index 5b9604e264..b65a2c3380 100644 --- a/cpukit/score/src/threadstart.c +++ b/cpukit/score/src/threadstart.c @@ -30,7 +30,7 @@ bool _Thread_Start( void *entry_point, void *pointer_argument, Thread_Entry_numeric_type numeric_argument, - Per_CPU_Control *processor + Per_CPU_Control *cpu ) { if ( _States_Is_dormant( the_thread->current_state ) ) { @@ -43,11 +43,11 @@ bool _Thread_Start( _Thread_Load_environment( the_thread ); - if ( processor == NULL ) { + if ( cpu == NULL ) { _Thread_Ready( the_thread ); } else { the_thread->current_state = STATES_READY; - _Scheduler_Start_idle( the_thread, processor ); + _Scheduler_Start_idle( _Scheduler_Get( the_thread ), the_thread, cpu ); } _User_extensions_Thread_start( the_thread ); |