[rtems commit] rtems: Use _Thread_Dispatch_direct()
Sebastian Huber
sebh at rtems.org
Fri Dec 2 10:51:55 UTC 2016
Module: rtems
Branch: master
Commit: 7da78cf637e5d039fd1e0aafd99b282626f9e266
Changeset: http://git.rtems.org/rtems/commit/?id=7da78cf637e5d039fd1e0aafd99b282626f9e266
Author: Sebastian Huber <sebastian.huber at embedded-brains.de>
Date: Fri Dec 2 11:51:16 2016 +0100
rtems: Use _Thread_Dispatch_direct()
Update #2797.
---
cpukit/rtems/src/scheduleraddprocessor.c | 2 +-
cpukit/rtems/src/schedulerremoveprocessor.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/cpukit/rtems/src/scheduleraddprocessor.c b/cpukit/rtems/src/scheduleraddprocessor.c
index 2572a47..505b8cc 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 86fd8e5..03a688d 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
More information about the vc
mailing list