diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2013-06-14 09:14:31 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2013-07-30 09:53:25 +0200 |
commit | d5ef7ae2a36bee532702d609f1dbb209cc47dd29 (patch) | |
tree | fe23444d0b02c06e7447ab169c88f7a16258bf5f /cpukit/score/src/smp.c | |
parent | score: Move _Thread_Dispatch_if_necessary() (diff) | |
download | rtems-d5ef7ae2a36bee532702d609f1dbb209cc47dd29.tar.bz2 |
smp: Delete _SMP_Request_other_cores_to_dispatch()
Use an event triggered unicast to inform remote processors about a
necessary thread dispatch instead.
Diffstat (limited to 'cpukit/score/src/smp.c')
-rw-r--r-- | cpukit/score/src/smp.c | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/cpukit/score/src/smp.c b/cpukit/score/src/smp.c index 35e8a01b90..5b299b4feb 100644 --- a/cpukit/score/src/smp.c +++ b/cpukit/score/src/smp.c @@ -165,27 +165,6 @@ void _SMP_Request_other_cores_to_perform_first_context_switch( void ) } } -void _SMP_Request_other_cores_to_dispatch( void ) -{ - if ( _System_state_Is_up( _System_state_Get() ) ) { - uint32_t self = _SMP_Get_current_processor(); - uint32_t ncpus = _SMP_Get_processor_count(); - uint32_t cpu; - - for ( cpu = 0 ; cpu < ncpus ; ++cpu ) { - const Per_CPU_Control *per_cpu = &_Per_CPU_Information[ cpu ]; - - if ( - cpu != self - && per_cpu->state == PER_CPU_STATE_UP - && per_cpu->dispatch_necessary - ) { - _SMP_Send_message( cpu, 0 ); - } - } - } -} - void _SMP_Request_other_cores_to_shutdown( void ) { uint32_t self = _SMP_Get_current_processor(); |