[rtems commit] smpschedaffinity05: Change semaphore attributes.

Jennifer Averett jennifer at rtems.org
Thu Nov 20 20:06:12 UTC 2014


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

Author:    Jennifer Averett <jennifer.averett at oarcorp.com>
Date:      Tue Nov 11 10:21:02 2014 -0600

smpschedaffinity05: Change semaphore attributes.

Change semaphore attributes to resolve problem where semaphore is not
released upon a context switch.

---

 testsuites/smptests/smpschedaffinity05/init.c | 10 ++++------
 1 file changed, 4 insertions(+), 6 deletions(-)

diff --git a/testsuites/smptests/smpschedaffinity05/init.c b/testsuites/smptests/smpschedaffinity05/init.c
index 754c226..5a36801 100644
--- a/testsuites/smptests/smpschedaffinity05/init.c
+++ b/testsuites/smptests/smpschedaffinity05/init.c
@@ -145,14 +145,12 @@ 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_PRIORITY | 
+    RTEMS_PRIORITY_CEILING,
     0,
     &task_sem
-  );  
+  );
   rtems_test_assert(sc == RTEMS_SUCCESSFUL);
 
 




More information about the vc mailing list