rtems: Use _Thread_Dispatch_direct()

Update #2797.
This commit is contained in:
Sebastian Huber
2016-12-02 11:51:16 +01:00
parent d10716f98f
commit 7da78cf637
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -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;
+1 -1
View File
@@ -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