diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 1995-09-19 21:44:33 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 1995-09-19 21:44:33 +0000 |
commit | 2122a0b7f4fe54c17a976b184ce13d4a48c60653 (patch) | |
tree | 9a9f2bc43aa868a6920913b5d704b3e217f1a50d /testsuites/mptests/mp14/pttask1.c | |
parent | Modifications from Tony Bennett accepted to return aligned block. (diff) | |
download | rtems-2122a0b7f4fe54c17a976b184ce13d4a48c60653.tar.bz2 |
Modifications from Tony Bennett accepted to tune this test a little.
Diffstat (limited to 'testsuites/mptests/mp14/pttask1.c')
-rw-r--r-- | testsuites/mptests/mp14/pttask1.c | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/testsuites/mptests/mp14/pttask1.c b/testsuites/mptests/mp14/pttask1.c index f6af1b0969..6aa1c714fc 100644 --- a/testsuites/mptests/mp14/pttask1.c +++ b/testsuites/mptests/mp14/pttask1.c @@ -29,6 +29,7 @@ rtems_task Partition_task( { rtems_unsigned32 count; rtems_status_code status; + rtems_unsigned32 yield_count; void *buffer; puts( "Getting ID of partition" ); @@ -43,8 +44,11 @@ rtems_task Partition_task( break; puts( "rtems_partition_ident FAILED!!" ); + rtems_task_wake_after(2); } + yield_count = 100; + while ( Stop_Test == FALSE ) { for ( count=PARTITION_DOT_COUNT ; Stop_Test == FALSE && count ; count-- ) { status = rtems_partition_get_buffer( Partition_id[ 1 ], &buffer ); @@ -53,10 +57,12 @@ rtems_task Partition_task( status = rtems_partition_return_buffer( Partition_id[ 1 ], buffer ); directive_failed( status, "rtems_partition_return_buffer" ); - if ( Multiprocessing_configuration.node == 1 ) { - status = rtems_task_wake_after( RTEMS_YIELD_PROCESSOR ); - directive_failed( status, "rtems_task_wake_after" ); - } + if (Stop_Test == FALSE) + if ( Multiprocessing_configuration.node == 1 && --yield_count == 0 ) { + status = rtems_task_wake_after( 1 ); + directive_failed( status, "rtems_task_wake_after" ); + yield_count = 100; + } } put_dot( 'p' ); } |