[rtems commit] score: Use _Per_CPU_Get_snapshot()

Sebastian Huber sebh at rtems.org
Tue Apr 22 07:30:13 UTC 2014


Module:    rtems
Branch:    master
Commit:    774edf2c9bdd7a773c82aad3f1bca84ffa1f7cc0
Changeset: http://git.rtems.org/rtems/commit/?id=774edf2c9bdd7a773c82aad3f1bca84ffa1f7cc0

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Tue Apr 22 07:46:44 2014 +0200

score: Use _Per_CPU_Get_snapshot()

---

 cpukit/score/src/debugisthreaddispatchingallowed.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/cpukit/score/src/debugisthreaddispatchingallowed.c b/cpukit/score/src/debugisthreaddispatchingallowed.c
index 523fd11..2f0c7f0 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 );
 




More information about the vc mailing list