summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2014-04-22 07:46:44 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2014-04-22 08:34:45 +0200
commit774edf2c9bdd7a773c82aad3f1bca84ffa1f7cc0 (patch)
tree1bbd9bacfb451e1e419a9f075fce0881e8b15fcb
parentdoc: Setting Affinity to a Single Processor (diff)
downloadrtems-774edf2c9bdd7a773c82aad3f1bca84ffa1f7cc0.tar.bz2
score: Use _Per_CPU_Get_snapshot()
-rw-r--r--cpukit/score/src/debugisthreaddispatchingallowed.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cpukit/score/src/debugisthreaddispatchingallowed.c b/cpukit/score/src/debugisthreaddispatchingallowed.c
index 523fd11dbc..2f0c7f07e2 100644
--- a/cpukit/score/src/debugisthreaddispatchingallowed.c
+++ b/cpukit/score/src/debugisthreaddispatchingallowed.c
@@ -27,7 +27,7 @@
Per_CPU_Control *per_cpu;
_ISR_Disable_without_giant( level );
- per_cpu = _Per_CPU_Get_by_index( _SMP_Get_current_processor() );
+ per_cpu = _Per_CPU_Get_snapshot();
dispatch_allowed = per_cpu->thread_dispatch_disable_level == 0;
_ISR_Enable_without_giant( level );