[rtems commit] score: Simplify _Scheduler_Set()
Sebastian Huber
sebh at rtems.org
Wed May 21 07:33:20 UTC 2014
Module: rtems
Branch: master
Commit: 40f2eafefd1e5ae5ad6f11566a094d383c2302ea
Changeset: http://git.rtems.org/rtems/commit/?id=40f2eafefd1e5ae5ad6f11566a094d383c2302ea
Author: Sebastian Huber <sebastian.huber at embedded-brains.de>
Date: Wed May 21 08:30:25 2014 +0200
score: Simplify _Scheduler_Set()
---
cpukit/score/include/rtems/score/schedulerimpl.h | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/cpukit/score/include/rtems/score/schedulerimpl.h b/cpukit/score/include/rtems/score/schedulerimpl.h
index f37a355..0f19833 100644
--- a/cpukit/score/include/rtems/score/schedulerimpl.h
+++ b/cpukit/score/include/rtems/score/schedulerimpl.h
@@ -354,7 +354,7 @@ RTEMS_INLINE_ROUTINE void _Scheduler_Set(
if ( current_scheduler != scheduler ) {
_Thread_Set_state( the_thread, STATES_MIGRATING );
- _Scheduler_Free( _Scheduler_Get( the_thread ), the_thread );
+ _Scheduler_Free( current_scheduler, the_thread );
the_thread->scheduler = scheduler;
_Scheduler_Allocate( scheduler, the_thread );
_Scheduler_Update( scheduler, the_thread );
More information about the vc
mailing list