diff options
author | Jennifer Averett <jennifer.averett@oarcorp.com> | 2014-11-12 08:42:48 -0600 |
---|---|---|
committer | Jennifer Averett <jennifer.averett@oarcorp.com> | 2014-11-20 13:47:03 -0600 |
commit | bc95f81699322eaa1ca9e2e4f4ec5fa1199e1827 (patch) | |
tree | aa95adcc264e814c135a1c11ce90f79990d4194c | |
parent | libtests/malloctest/init.c: Fix warning (diff) | |
download | rtems-bc95f81699322eaa1ca9e2e4f4ec5fa1199e1827.tar.bz2 |
smpschedaffinity02: Change semaphore attributes.
Change semaphore attributes to prevent semaphore from being
locked and never released upon a context switch.
-rw-r--r-- | testsuites/smptests/smpschedaffinity02/init.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/testsuites/smptests/smpschedaffinity02/init.c b/testsuites/smptests/smpschedaffinity02/init.c index a3e0ddf47b..5f22110a24 100644 --- a/testsuites/smptests/smpschedaffinity02/init.c +++ b/testsuites/smptests/smpschedaffinity02/init.c @@ -115,6 +115,7 @@ static void task(rtems_task_argument arg) if (sc == RTEMS_SUCCESSFUL) { task_data.actual_cpu = rtems_get_current_processor(); task_data.ran = true; + test_delay(25); rtems_semaphore_release(task_sem); } } @@ -140,11 +141,9 @@ static void test(void) sc = rtems_semaphore_create( rtems_build_name('S', 'E', 'M', '0'), 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 ); |