Changeset ef89926 in rtems


Ignore:
Timestamp:
Oct 30, 2009, 5:04:36 PM (12 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 5, master
Children:
54b4a024
Parents:
82567f5
Message:

2009-10-30 Joel Sherrill <joel.sherrill@…>

  • mp03/task1.c, mp10/init.c, mp13/task1.c: Use rtems_clock_get_ticks_per_second() instead of the obsoleted TICKS_PER_SECOND.
Location:
testsuites/mptests
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • testsuites/mptests/ChangeLog

    r82567f5 ref89926  
     12009-10-30      Joel Sherrill <joel.sherrill@oarcorp.com>
     2
     3        * mp03/task1.c, mp10/init.c, mp13/task1.c: Use
     4        rtems_clock_get_ticks_per_second() instead of the obsoleted
     5        TICKS_PER_SECOND.
     6
    172009-10-30      Ralf Corsépius <ralf.corsepius@rtems.org>
    28
  • testsuites/mptests/mp03/task1.c

    r82567f5 ref89926  
    5858      directive_failed( status, "rtems_task_suspend" );
    5959
    60       status = rtems_task_wake_after( 2 * TICKS_PER_SECOND );
     60      status = rtems_task_wake_after( 2 * rtems_clock_get_ticks_per_second() );
    6161      directive_failed( status, "rtems_task_wake_after" );
    6262
     
    8787      puts( " - have I been suspended???" );
    8888
    89       status = rtems_task_wake_after( TICKS_PER_SECOND / 2 );
     89      status = rtems_task_wake_after( rtems_clock_get_ticks_per_second() / 2 );
    9090      directive_failed( status, "rtems_task_wake_after" );
    9191    }
     
    127127  status = rtems_timer_fire_after(
    128128    Timer_id[ 1 ],
    129     5 * TICKS_PER_SECOND,
     129    5 * rtems_clock_get_ticks_per_second(),
    130130    Delayed_send_event,
    131131    NULL
     
    137137  status = rtems_timer_fire_after(
    138138    Timer_id[ 1 ],
    139     5 * TICKS_PER_SECOND,
     139    5 * rtems_clock_get_ticks_per_second(),
    140140    Delayed_send_event,
    141141    NULL
     
    144144
    145145  if ( Multiprocessing_configuration.node == 1 ) {
    146     status = rtems_task_wake_after( 2 * TICKS_PER_SECOND );
     146    status = rtems_task_wake_after( 2 * rtems_clock_get_ticks_per_second() );
    147147    directive_failed( status, "rtems_task_wake_after" );
    148148  }
  • testsuites/mptests/mp10/init.c

    r82567f5 ref89926  
    122122
    123123    puts( "Sleeping for 1 seconds ..." );
    124     status = rtems_task_wake_after( TICKS_PER_SECOND );
     124    status = rtems_task_wake_after( rtems_clock_get_ticks_per_second() );
    125125    directive_failed( status, "rtems_task_wake_after" );
    126126
  • testsuites/mptests/mp13/task1.c

    r82567f5 ref89926  
    6262    &size,
    6363    RTEMS_DEFAULT_OPTIONS,
    64     2 * TICKS_PER_SECOND
     64    2 * rtems_clock_get_ticks_per_second()
    6565  );
    6666  fatal_directive_status(status, RTEMS_TIMEOUT, "rtems_message_queue_receive");
Note: See TracChangeset for help on using the changeset viewer.