[rtems commit] score: Fix MrsP root node update
Sebastian Huber
sebh at rtems.org
Tue Jun 10 13:58:11 UTC 2014
Module: rtems
Branch: master
Commit: e473f3c12e217088f0237e0336cf4319cff54702
Changeset: http://git.rtems.org/rtems/commit/?id=e473f3c12e217088f0237e0336cf4319cff54702
Author: Sebastian Huber <sebastian.huber at embedded-brains.de>
Date: Tue Jun 10 14:30:47 2014 +0200
score: Fix MrsP root node update
Set the new root after the resource tree update.
---
cpukit/score/include/rtems/score/mrspimpl.h | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/cpukit/score/include/rtems/score/mrspimpl.h b/cpukit/score/include/rtems/score/mrspimpl.h
index 083f428..2369d9d 100644
--- a/cpukit/score/include/rtems/score/mrspimpl.h
+++ b/cpukit/score/include/rtems/score/mrspimpl.h
@@ -325,9 +325,9 @@ RTEMS_INLINE_ROUTINE MRSP_Status _MRSP_Release(
_Resource_Node_extract( new_owner );
_Resource_Node_set_dependency( new_owner, NULL );
- _MRSP_Set_root( new_owner, new_owner );
_Resource_Node_add_resource( new_owner, &mrsp->Resource );
_Resource_Set_owner( &mrsp->Resource, new_owner );
+ _MRSP_Set_root( new_owner, new_owner );
_MRSP_Add_state( rival, MRSP_RIVAL_STATE_NEW_OWNER );
}
More information about the vc
mailing list