summaryrefslogtreecommitdiffstats
path: root/cpukit/score/include/rtems/score/smpimpl.h
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2014-04-22 07:46:53 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2014-04-22 08:34:45 +0200
commit3380ee8194ec35506b88257f369e88d1d26350f1 (patch)
treef2b84dc6ddc0d66e044b012bde6cb036828d5bf6 /cpukit/score/include/rtems/score/smpimpl.h
parentscore: Fix warning (diff)
downloadrtems-3380ee8194ec35506b88257f369e88d1d26350f1.tar.bz2
score: Use common names for per-CPU variables
Use "cpu" for an arbitrary Per_CPU_Control variable. Use "cpu_self" for the Per_CPU_Control of the current processor. Use "cpu_index" for an arbitrary processor index. Use "cpu_index_self" for the processor index of the current processor. Use "cpu_count" for the processor count obtained via _SMP_Get_processor_count(). Use "cpu_max" for the processor maximum obtained by rtems_configuration_get_maximum_processors().
Diffstat (limited to 'cpukit/score/include/rtems/score/smpimpl.h')
-rw-r--r--cpukit/score/include/rtems/score/smpimpl.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/cpukit/score/include/rtems/score/smpimpl.h b/cpukit/score/include/rtems/score/smpimpl.h
index 225da0fde4..c281592bdc 100644
--- a/cpukit/score/include/rtems/score/smpimpl.h
+++ b/cpukit/score/include/rtems/score/smpimpl.h
@@ -107,16 +107,16 @@ void _SMP_Start_multitasking_on_secondary_processor( void )
*/
static inline void _SMP_Inter_processor_interrupt_handler( void )
{
- Per_CPU_Control *self_cpu = _Per_CPU_Get();
+ Per_CPU_Control *cpu_self = _Per_CPU_Get();
- if ( self_cpu->message != 0 ) {
+ if ( cpu_self->message != 0 ) {
uint32_t message;
ISR_Level level;
- _Per_CPU_ISR_disable_and_acquire( self_cpu, level );
- message = self_cpu->message;
- self_cpu->message = 0;
- _Per_CPU_Release_and_ISR_enable( self_cpu, level );
+ _Per_CPU_ISR_disable_and_acquire( cpu_self, level );
+ message = cpu_self->message;
+ cpu_self->message = 0;
+ _Per_CPU_Release_and_ISR_enable( cpu_self, level );
if ( ( message & SMP_MESSAGE_SHUTDOWN ) != 0 ) {
rtems_fatal( RTEMS_FATAL_SOURCE_SMP, SMP_FATAL_SHUTDOWN );
@@ -130,10 +130,10 @@ static inline void _SMP_Inter_processor_interrupt_handler( void )
*
* The target processor may be the sending processor.
*
- * @param[in] cpu The target processor of the message.
+ * @param[in] cpu_index The target processor of the message.
* @param[in] message The message.
*/
-void _SMP_Send_message( uint32_t cpu, uint32_t message );
+void _SMP_Send_message( uint32_t cpu_index, uint32_t message );
/**
* @brief Request of others CPUs.