diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2014-04-29 16:09:35 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2014-05-05 08:26:27 +0200 |
commit | e239760f6a6a5e31331487548d56c4a7581ed7cc (patch) | |
tree | f8f80f50df7562c7bb2209747c8544589212f45f /cpukit/score/src/smp.c | |
parent | doc: Add SMP glossary (diff) | |
download | rtems-e239760f6a6a5e31331487548d56c4a7581ed7cc.tar.bz2 |
score: SMP_FATAL_SCHEDULER_WITHOUT_PROCESSORS
Avoid the SMP_FATAL_SCHEDULER_WITHOUT_PROCESSORS fatal error and make it
a run-time error in rtems_scheduler_ident() and _Scheduler_Get_by_id().
Diffstat (limited to 'cpukit/score/src/smp.c')
-rw-r--r-- | cpukit/score/src/smp.c | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/cpukit/score/src/smp.c b/cpukit/score/src/smp.c index f03a4c05e4..34db46ad1e 100644 --- a/cpukit/score/src/smp.c +++ b/cpukit/score/src/smp.c @@ -25,20 +25,6 @@ #include <rtems/score/threadimpl.h> #include <rtems/config.h> -static void _SMP_Check_scheduler_configuration( void ) -{ - size_t n = _Scheduler_Count; - size_t i; - - for ( i = 0 ; i < n ; ++i ) { - const Scheduler_Control *scheduler = &_Scheduler_Table[ i ]; - - if ( scheduler->context->processor_count == 0 ) { - _SMP_Fatal( SMP_FATAL_SCHEDULER_WITHOUT_PROCESSORS ); - } - } -} - static void _SMP_Start_processors( uint32_t cpu_count ) { uint32_t cpu_index_self = _SMP_Get_current_processor(); @@ -75,8 +61,6 @@ static void _SMP_Start_processors( uint32_t cpu_count ) ++assignment->scheduler->context->processor_count; } } - - _SMP_Check_scheduler_configuration(); } void _SMP_Handler_initialize( void ) |