[rtems commit] smpschedaffinity04: Change semaphore attributes.
Jennifer Averett
jennifer at rtems.org
Thu Nov 20 20:06:12 UTC 2014
Module: rtems
Branch: master
Commit: 1960dcb9b252576a1362ddd0c57940595c44e4a6
Changeset: http://git.rtems.org/rtems/commit/?id=1960dcb9b252576a1362ddd0c57940595c44e4a6
Author: Jennifer Averett <jennifer.averett at oarcorp.com>
Date: Wed Nov 12 08:42:13 2014 -0600
smpschedaffinity04: Change semaphore attributes.
Change semaphore attributes to prevent semaphore from being
locked and never released upon a context switch.
---
testsuites/smptests/smpschedaffinity04/init.c | 8 +++-----
1 file changed, 3 insertions(+), 5 deletions(-)
diff --git a/testsuites/smptests/smpschedaffinity04/init.c b/testsuites/smptests/smpschedaffinity04/init.c
index bdfc56c..f5ccab8 100644
--- a/testsuites/smptests/smpschedaffinity04/init.c
+++ b/testsuites/smptests/smpschedaffinity04/init.c
@@ -85,11 +85,9 @@ 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
);
More information about the vc
mailing list