[PATCH 3/3] smpschedaffinity05: Change semaphore attributes.
Jennifer Averett
jennifer.averett at oarcorp.com
Thu Nov 13 18:15:37 UTC 2014
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);
--
1.8.1.4
More information about the devel
mailing list