summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJennifer Averett <jennifer.averett@oarcorp.com>2014-11-13 19:15:00 +0100
committerDaniel Hellstrom <daniel@gaisler.com>2014-11-19 16:29:56 +0100
commit7769fb1b1b910688e76a84c65b2c00059a82ea4a (patch)
tree897cb8b4cafa9040e46e30e1cc1996ba382a52b8
parent49e23a3851ed51fc82fa3f6025623d74cde83453 (diff)
smpschedaffinity04: Change semaphore attributes.
Change semaphore attributes to prevent semaphore from being locked and never released upon a context switch.
-rw-r--r--testsuites/smptests/smpschedaffinity04/init.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/testsuites/smptests/smpschedaffinity04/init.c b/testsuites/smptests/smpschedaffinity04/init.c
index bdfc56c1a9..f5ccab8833 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
);