[PATCH 2/3] smpschedaffinity04: Change semaphore attributes.
Jennifer Averett
jennifer.averett at oarcorp.com
Wed Nov 12 14:48:29 UTC 2014
Change semaphore attributes to prevent semaphore from being
locked and never released upon a context switch.
---
testsuites/smptests/smpschedaffinity04/init.c | 7 ++-----
1 file changed, 2 insertions(+), 5 deletions(-)
diff --git a/testsuites/smptests/smpschedaffinity04/init.c b/testsuites/smptests/smpschedaffinity04/init.c
index bdfc56c..3c860a8 100644
--- a/testsuites/smptests/smpschedaffinity04/init.c
+++ b/testsuites/smptests/smpschedaffinity04/init.c
@@ -85,11 +85,8 @@ 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
);
--
1.8.1.4
More information about the devel
mailing list