[rtems commit] drvmgr: Really fix API mutex usage

Sebastian Huber sebh at rtems.org
Tue Apr 24 13:40:32 UTC 2018


Module:    rtems
Branch:    master
Commit:    f4794b60f67308599b0ef50cc92a914c58bfb4cf
Changeset: http://git.rtems.org/rtems/commit/?id=f4794b60f67308599b0ef50cc92a914c58bfb4cf

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Tue Apr 24 15:40:07 2018 +0200

drvmgr: Really fix API mutex usage

---

 cpukit/libdrvmgr/drvmgr_lock.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/cpukit/libdrvmgr/drvmgr_lock.c b/cpukit/libdrvmgr/drvmgr_lock.c
index 23cdb13..5b7cbcf 100644
--- a/cpukit/libdrvmgr/drvmgr_lock.c
+++ b/cpukit/libdrvmgr/drvmgr_lock.c
@@ -13,14 +13,14 @@
 
 void _DRV_Manager_Lock( void )
 {
-  if ( !_System_state_Is_before_multitasking( _System_state_Get() ) ) {
+  if ( !_System_state_Is_before_initialization( _System_state_Get() ) ) {
     _API_Mutex_Lock( &drvmgr.lock );
   }
 }
 
 void _DRV_Manager_Unlock(void)
 {
-  if ( !_System_state_Is_before_multitasking( _System_state_Get() ) ) {
+  if ( !_System_state_Is_before_initialization( _System_state_Get() ) ) {
     _API_Mutex_Unlock( &drvmgr.lock );
   }
 }




More information about the vc mailing list