forked from Imagelibrary/rtems
2011-05-05 Joel Sherrill <joel.sherrill@oarcorp.com>
* tm01/task1.c, tm02/task1.c, tm03/task1.c, tm15/task1.c: Remove warnings.
This commit is contained in:
@@ -1,3 +1,8 @@
|
||||
2011-05-05 Joel Sherrill <joel.sherrill@oarcorp.com>
|
||||
|
||||
* tm01/task1.c, tm02/task1.c, tm03/task1.c, tm15/task1.c: Remove
|
||||
warnings.
|
||||
|
||||
2011-03-16 Jennifer Averett <jennifer.averett@OARcorp.com>
|
||||
|
||||
PR 1743/cpu
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* COPYRIGHT (c) 1989-2009.
|
||||
* COPYRIGHT (c) 1989-2011.
|
||||
* On-Line Applications Research Corporation (OAR).
|
||||
*
|
||||
* The license and distribution terms for this file may be
|
||||
@@ -115,6 +115,7 @@ rtems_task Test_task(
|
||||
RTEMS_NO_PRIORITY,
|
||||
&smid
|
||||
);
|
||||
directive_failed( status, "rtems_task_create of TA1" );
|
||||
|
||||
for ( iterations=OPERATION_COUNT ; iterations ; iterations-- ) {
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* COPYRIGHT (c) 1989-2009.
|
||||
* COPYRIGHT (c) 1989-2011.
|
||||
* On-Line Applications Research Corporation (OAR).
|
||||
*
|
||||
* The license and distribution terms for this file may be
|
||||
@@ -121,10 +121,10 @@ rtems_task High_task(
|
||||
rtems_task_argument argument
|
||||
)
|
||||
{
|
||||
rtems_status_code status;
|
||||
/* start blocking rtems_semaphore_obtain time */
|
||||
benchmark_timer_initialize();
|
||||
|
||||
benchmark_timer_initialize(); /* start blocking rtems_semaphore_obtain time */
|
||||
status = rtems_semaphore_obtain(
|
||||
(void) rtems_semaphore_obtain(
|
||||
Semaphore_id,
|
||||
RTEMS_DEFAULT_OPTIONS,
|
||||
RTEMS_NO_TIMEOUT
|
||||
@@ -135,9 +135,7 @@ rtems_task Middle_tasks(
|
||||
rtems_task_argument argument
|
||||
)
|
||||
{
|
||||
rtems_status_code status;
|
||||
|
||||
status = rtems_semaphore_obtain(
|
||||
(void) rtems_semaphore_obtain(
|
||||
Semaphore_id,
|
||||
RTEMS_DEFAULT_OPTIONS,
|
||||
RTEMS_NO_TIMEOUT
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* COPYRIGHT (c) 1989-2009.
|
||||
* COPYRIGHT (c) 1989-2011.
|
||||
* On-Line Applications Research Corporation (OAR).
|
||||
*
|
||||
* The license and distribution terms for this file may be
|
||||
@@ -118,24 +118,20 @@ rtems_task Middle_tasks(
|
||||
rtems_task_argument argument
|
||||
)
|
||||
{
|
||||
rtems_status_code status;
|
||||
|
||||
status = rtems_semaphore_obtain(
|
||||
(void) rtems_semaphore_obtain(
|
||||
Semaphore_id,
|
||||
RTEMS_DEFAULT_OPTIONS,
|
||||
RTEMS_NO_TIMEOUT
|
||||
);
|
||||
|
||||
status = rtems_semaphore_release( Semaphore_id );
|
||||
(void) rtems_semaphore_release( Semaphore_id );
|
||||
}
|
||||
|
||||
rtems_task High_task(
|
||||
rtems_task_argument argument
|
||||
)
|
||||
{
|
||||
rtems_status_code status;
|
||||
|
||||
status = rtems_semaphore_obtain(
|
||||
(void) rtems_semaphore_obtain(
|
||||
Semaphore_id,
|
||||
RTEMS_DEFAULT_OPTIONS,
|
||||
RTEMS_NO_TIMEOUT
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* COPYRIGHT (c) 1989-2009.
|
||||
* COPYRIGHT (c) 1989-2011.
|
||||
* On-Line Applications Research Corporation (OAR).
|
||||
*
|
||||
* The license and distribution terms for this file may be
|
||||
@@ -203,10 +203,8 @@ rtems_task High_tasks(
|
||||
rtems_task_argument argument
|
||||
)
|
||||
{
|
||||
rtems_status_code status;
|
||||
|
||||
if ( time_set )
|
||||
status = rtems_event_receive(
|
||||
(void) rtems_event_receive(
|
||||
RTEMS_EVENT_16,
|
||||
RTEMS_DEFAULT_OPTIONS,
|
||||
RTEMS_NO_TIMEOUT,
|
||||
@@ -214,8 +212,9 @@ rtems_task High_tasks(
|
||||
);
|
||||
else {
|
||||
time_set = true;
|
||||
benchmark_timer_initialize(); /* start blocking rtems_event_receive time */
|
||||
status = rtems_event_receive(
|
||||
/* start blocking rtems_event_receive time */
|
||||
benchmark_timer_initialize();
|
||||
(void) rtems_event_receive(
|
||||
RTEMS_EVENT_16,
|
||||
RTEMS_DEFAULT_OPTIONS,
|
||||
RTEMS_NO_TIMEOUT,
|
||||
|
||||
Reference in New Issue
Block a user