summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2016-12-02 11:51:16 +0100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2016-12-02 11:51:16 +0100
commit7da78cf637e5d039fd1e0aafd99b282626f9e266 (patch)
tree9e23f80e80a2605f9a6711989926daec3f950ba5
parentd10716f98f950348cf25df9097402987b6e219fc (diff)
downloadrtems-7da78cf637e5d039fd1e0aafd99b282626f9e266.tar.bz2
rtems: Use _Thread_Dispatch_direct()
Update #2797.
-rw-r--r--cpukit/rtems/src/scheduleraddprocessor.c2
-rw-r--r--cpukit/rtems/src/schedulerremoveprocessor.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/cpukit/rtems/src/scheduleraddprocessor.c b/cpukit/rtems/src/scheduleraddprocessor.c
index 2572a47ecc..505b8cc9dc 100644
--- a/cpukit/rtems/src/scheduleraddprocessor.c
+++ b/cpukit/rtems/src/scheduleraddprocessor.c
@@ -102,7 +102,7 @@ rtems_status_code rtems_scheduler_add_processor(
cpu_self = _Thread_Dispatch_disable_critical( &lock_context );
_Scheduler_Release_critical( scheduler, &lock_context );
_ISR_lock_ISR_enable( &lock_context );
- _Thread_Dispatch_enable( cpu_self );
+ _Thread_Dispatch_direct( cpu_self );
status = RTEMS_SUCCESSFUL;
} else {
status = RTEMS_RESOURCE_IN_USE;
diff --git a/cpukit/rtems/src/schedulerremoveprocessor.c b/cpukit/rtems/src/schedulerremoveprocessor.c
index 86fd8e5265..03a688d64e 100644
--- a/cpukit/rtems/src/schedulerremoveprocessor.c
+++ b/cpukit/rtems/src/schedulerremoveprocessor.c
@@ -136,7 +136,7 @@ rtems_status_code rtems_scheduler_remove_processor(
cpu_self = _Thread_Dispatch_disable_critical( &lock_context );
_Scheduler_Release_critical( scheduler, &lock_context );
_ISR_lock_ISR_enable( &lock_context );
- _Thread_Dispatch_enable( cpu_self );
+ _Thread_Dispatch_direct( cpu_self );
_Objects_Allocator_unlock();
return iter_context.status;
#else