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/threadhandler.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/threadhandler.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/cpukit/score/src/threadhandler.c b/cpukit/score/src/threadhandler.c index 3d4d9b29fb..229e74f937 100644 --- a/cpukit/score/src/threadhandler.c +++ b/cpukit/score/src/threadhandler.c @@ -148,15 +148,15 @@ void _Thread_Handler( void ) * _Thread_Dispatch() obtained the per-CPU lock for us. We have to * release it here and set the desired interrupt level of the thread. */ - Per_CPU_Control *per_cpu = _Per_CPU_Get(); + Per_CPU_Control *cpu_self = _Per_CPU_Get(); - _Assert( per_cpu->thread_dispatch_disable_level == 1 ); + _Assert( cpu_self->thread_dispatch_disable_level == 1 ); _Assert( _ISR_Get_level() != 0 ); - per_cpu->thread_dispatch_disable_level = 0; - _Profiling_Thread_dispatch_enable( per_cpu, 0 ); + cpu_self->thread_dispatch_disable_level = 0; + _Profiling_Thread_dispatch_enable( cpu_self, 0 ); - _Per_CPU_Release( per_cpu ); + _Per_CPU_Release( cpu_self ); level = executing->Start.isr_level; _ISR_Set_level( level); |