summaryrefslogtreecommitdiffstats
path: root/cpukit/rtems
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2015-03-20 13:41:27 +0100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2015-03-24 14:35:05 +0100
commit4054c9164601830c7ead74be612d33c4717d8ea6 (patch)
tree10b417daff4d9013a3fda4ee6f42895129259984 /cpukit/rtems
parentscore: Use a dedicated ISR lock for thread queues (diff)
downloadrtems-4054c9164601830c7ead74be612d33c4717d8ea6.tar.bz2
score: Add scheduler acquire/release
This is currently a global lock for all scheduler instances. It should get replaced with one lock per scheduler instance in the future. Update #2273.
Diffstat (limited to 'cpukit/rtems')
-rw-r--r--cpukit/rtems/src/taskmode.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/cpukit/rtems/src/taskmode.c b/cpukit/rtems/src/taskmode.c
index 1056c6b11e..de30806186 100644
--- a/cpukit/rtems/src/taskmode.c
+++ b/cpukit/rtems/src/taskmode.c
@@ -110,12 +110,12 @@ rtems_status_code rtems_task_mode(
}
if ( preempt_enabled || needs_asr_dispatching ) {
- ISR_Level level;
+ ISR_lock_Context lock_context;
_Thread_Disable_dispatch();
- _ISR_Disable( level );
+ _Scheduler_Acquire( executing, &lock_context );
_Scheduler_Schedule( executing );
- _ISR_Enable( level );
+ _Scheduler_Release( executing, &lock_context );
_Thread_Enable_dispatch();
}