From 6e31b56f95dfde7d6bc2d6d9f03541446f767c62 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Thu, 3 Nov 2016 10:52:53 +0100 Subject: rtems: Fix binary semaphore resource count Binary semaphores (not simple binary semaphores) maintain the resource count since 8797c76addf22a2f0ffc3717ff977695e35b9b0b. Do this also for initially locked binary semaphores. --- cpukit/rtems/src/semcreate.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'cpukit/rtems') diff --git a/cpukit/rtems/src/semcreate.c b/cpukit/rtems/src/semcreate.c index c38e69f7ed..825e445b35 100644 --- a/cpukit/rtems/src/semcreate.c +++ b/cpukit/rtems/src/semcreate.c @@ -148,10 +148,7 @@ rtems_status_code rtems_semaphore_create( &the_semaphore->Core_control.Mutex.Recursive.Mutex, executing ); - - if ( variant == SEMAPHORE_VARIANT_MUTEX_INHERIT_PRIORITY ) { - ++executing->resource_count; - } + ++executing->resource_count; } status = STATUS_SUCCESSFUL; -- cgit v1.2.3