[PATCH 3/3] smpschedaffinity05: Change semaphore attributes.

Jennifer Averett jennifer.averett at oarcorp.com
Wed Nov 12 14:48:30 UTC 2014


Change semaphore attributes to resolve problem where semaphore is not
released upon a context switch.
---
 testsuites/smptests/smpschedaffinity05/init.c | 9 +++------
 1 file changed, 3 insertions(+), 6 deletions(-)

diff --git a/testsuites/smptests/smpschedaffinity05/init.c b/testsuites/smptests/smpschedaffinity05/init.c
index 754c226..9fddb58 100644
--- a/testsuites/smptests/smpschedaffinity05/init.c
+++ b/testsuites/smptests/smpschedaffinity05/init.c
@@ -145,14 +145,11 @@ static void test(void)
   sc = rtems_semaphore_create(  
     rtems_build_name('S', 'E', 'M', '0'),
     1,                                               /* initial count = 1 */
-    RTEMS_LOCAL                   |
-    RTEMS_SIMPLE_BINARY_SEMAPHORE |
-    RTEMS_NO_INHERIT_PRIORITY     |
-    RTEMS_NO_PRIORITY_CEILING     |
-    RTEMS_FIFO,
+    RTEMS_BINARY_SEMAPHORE |
+    RTEMS_MULTIPROCESSOR_RESOURCE_SHARING, 
     0,
     &task_sem
-  );  
+  );
   rtems_test_assert(sc == RTEMS_SUCCESSFUL);
 
 
-- 
1.8.1.4




More information about the devel mailing list