smpschedaffinity05: Change semaphore attributes.

Change semaphore attributes to resolve problem where semaphore is not
released upon a context switch.
This commit is contained in:
Jennifer Averett
2014-11-11 10:21:02 -06:00
parent 1960dcb9b2
commit db44590c1d

View File

@@ -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);