diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2014-04-22 07:46:53 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2014-04-22 08:34:45 +0200 |
commit | 3380ee8194ec35506b88257f369e88d1d26350f1 (patch) | |
tree | f2b84dc6ddc0d66e044b012bde6cb036828d5bf6 /cpukit/score/src/threadstartmultitasking.c | |
parent | score: Fix warning (diff) | |
download | rtems-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 '')
-rw-r--r-- | cpukit/score/src/threadstartmultitasking.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/cpukit/score/src/threadstartmultitasking.c b/cpukit/score/src/threadstartmultitasking.c index e170a0d71a..78a438f6d8 100644 --- a/cpukit/score/src/threadstartmultitasking.c +++ b/cpukit/score/src/threadstartmultitasking.c @@ -22,30 +22,30 @@ void _Thread_Start_multitasking( void ) { - Per_CPU_Control *self_cpu = _Per_CPU_Get(); + Per_CPU_Control *cpu_self = _Per_CPU_Get(); Thread_Control *heir; #if defined(RTEMS_SMP) - _Per_CPU_State_change( self_cpu, PER_CPU_STATE_UP ); + _Per_CPU_State_change( cpu_self, PER_CPU_STATE_UP ); /* * Threads begin execution in the _Thread_Handler() function. This * function will set the thread dispatch disable level to zero and calls * _Per_CPU_Release(). */ - _Per_CPU_Acquire( self_cpu ); - self_cpu->thread_dispatch_disable_level = 1; + _Per_CPU_Acquire( cpu_self ); + cpu_self->thread_dispatch_disable_level = 1; #endif - heir = self_cpu->heir; + heir = cpu_self->heir; #if defined(RTEMS_SMP) - self_cpu->executing->is_executing = false; + cpu_self->executing->is_executing = false; heir->is_executing = true; #endif - self_cpu->dispatch_necessary = false; - self_cpu->executing = heir; + cpu_self->dispatch_necessary = false; + cpu_self->executing = heir; /* * Get the init task(s) running. @@ -69,7 +69,7 @@ void _Thread_Start_multitasking( void ) _Context_Restore_fp( &heir->fp_context ); #endif - _Profiling_Thread_dispatch_disable( self_cpu, 0 ); + _Profiling_Thread_dispatch_disable( cpu_self, 0 ); #if defined(_CPU_Start_multitasking) _CPU_Start_multitasking( &heir->Registers ); |