summaryrefslogtreecommitdiffstats
path: root/cpukit/libnetworking
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2016-04-27 16:36:04 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2016-05-02 07:46:15 +0200
commitf009ed086d3da813a2c92b9834c3b2d618894883 (patch)
tree628365f80495067065583ec8fa3a278fe52c4f68 /cpukit/libnetworking
parentposix: Simplify message queues (diff)
downloadrtems-f009ed086d3da813a2c92b9834c3b2d618894883.tar.bz2
rtems: Avoid Giant lock for semaphores
Update #2555.
Diffstat (limited to 'cpukit/libnetworking')
-rw-r--r--cpukit/libnetworking/rtems/rtems_glue.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/cpukit/libnetworking/rtems/rtems_glue.c b/cpukit/libnetworking/rtems/rtems_glue.c
index f079a67a3a..b360b079ba 100644
--- a/cpukit/libnetworking/rtems/rtems_glue.c
+++ b/cpukit/libnetworking/rtems/rtems_glue.c
@@ -330,11 +330,8 @@ rtems_bsdnet_initialize (void)
return -1;
}
#ifdef RTEMS_FAST_MUTEX
- {
- Objects_Locations location;
- the_networkSemaphore = _Semaphore_Get( networkSemaphore, &location );
- _Thread_Enable_dispatch();
- }
+ the_networkSemaphore = (Semaphore_Control *)
+ _Objects_Get_no_protection(networkSemaphore, &_Semaphore_Information);
#endif
/*