summaryrefslogtreecommitdiffstats
path: root/cpukit/score/src/debugisthreaddispatchingallowed.c
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/src/debugisthreaddispatchingallowed.c
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/src/debugisthreaddispatchingallowed.c')
-rw-r--r--cpukit/score/src/debugisthreaddispatchingallowed.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/cpukit/score/src/debugisthreaddispatchingallowed.c b/cpukit/score/src/debugisthreaddispatchingallowed.c
index 2f0c7f07e2..0f1580c1fd 100644
--- a/cpukit/score/src/debugisthreaddispatchingallowed.c
+++ b/cpukit/score/src/debugisthreaddispatchingallowed.c
@@ -24,11 +24,11 @@
{
bool dispatch_allowed;
ISR_Level level;
- Per_CPU_Control *per_cpu;
+ Per_CPU_Control *cpu_self;
_ISR_Disable_without_giant( level );
- per_cpu = _Per_CPU_Get_snapshot();
- dispatch_allowed = per_cpu->thread_dispatch_disable_level == 0;
+ cpu_self = _Per_CPU_Get_snapshot();
+ dispatch_allowed = cpu_self->thread_dispatch_disable_level == 0;
_ISR_Enable_without_giant( level );
return dispatch_allowed;