Changeset 3c69c467 in rtems


Ignore:
Timestamp:
Mar 14, 2015, 4:08:01 PM (5 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.11, master
Children:
38d91667
Parents:
e334edd
git-author:
Joel Sherrill <joel.sherrill@…> (03/14/15 16:08:01)
git-committer:
Joel Sherrill <joel.sherrill@…> (03/17/15 15:05:07)
Message:

sptests misc: Update to not use deprecated methods

Location:
testsuites/sptests
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • testsuites/sptests/spcbssched02/task_periodic.c

    re334edd r3c69c467  
    108108      printf( "P%" PRIdPTR " - Deadline miss\n", argument );
    109109
    110     rtems_clock_get( RTEMS_CLOCK_GET_TICKS_SINCE_BOOT, &start );
     110    start = rtems_clock_get_ticks_since_boot();
    111111    printf( "P%" PRIdPTR "-S ticks:%d\n", argument, start );
    112112    if ( start > 4*Period+Phase ) break; /* stop */
    113113    /* active computing */
    114114    while(FOREVER) {
    115       rtems_clock_get( RTEMS_CLOCK_GET_TICKS_SINCE_BOOT, &now );
     115      now = rtems_clock_get_ticks_since_boot();
    116116      if ( now >= start + Execution ) break;
    117117
     
    127127      }
    128128    }
    129     rtems_clock_get( RTEMS_CLOCK_GET_TICKS_SINCE_BOOT, &stop );
     129    stop = rtems_clock_get_ticks_since_boot();
    130130    printf( "P%" PRIdPTR "-F ticks:%d\n", argument, stop );
    131131  }
  • testsuites/sptests/spcbssched03/tasks_aperiodic.c

    re334edd r3c69c467  
    3232  directive_failed( status, "rtems_task_wake_after" );
    3333
    34   rtems_clock_get(RTEMS_CLOCK_GET_TICKS_SINCE_BOOT, &start);
     34  start = rtems_clock_get_ticks_since_boot();
    3535  printf("AT%" PRIdPTR "-S ticks:%d\n", argument, start);
    3636  /* active computing */
    3737
    3838  while(FOREVER) {
    39     rtems_clock_get(RTEMS_CLOCK_GET_TICKS_SINCE_BOOT, &now);
     39    now = rtems_clock_get_ticks_since_boot();
    4040    if (now >= start + Execution[argument]) break;
    4141  }
    42   rtems_clock_get(RTEMS_CLOCK_GET_TICKS_SINCE_BOOT, &stop);
     42  stop = rtems_clock_get_ticks_since_boot();
    4343  printf("P%" PRIdPTR "-F ticks:%d\n", argument, stop);
    4444
  • testsuites/sptests/spcbssched03/tasks_periodic.c

    re334edd r3c69c467  
    9999      printf("P%" PRIdPTR " - Deadline miss\n", argument);
    100100
    101     rtems_clock_get(RTEMS_CLOCK_GET_TICKS_SINCE_BOOT, &start);
     101    start = rtems_clock_get_ticks_since_boot();
    102102    printf("P%" PRIdPTR "-S ticks:%d\n", argument, start);
    103103    if ( start >= 2*HP_LENGTH ) break; /* stop */
     
    135135    /* active computing */
    136136    while(FOREVER) {
    137       rtems_clock_get(RTEMS_CLOCK_GET_TICKS_SINCE_BOOT, &now);
     137      now = rtems_clock_get_ticks_since_boot();
    138138      if ( argument == 4 && !Violating_task[ argument ] &&
    139139          (now >= start + Execution[argument]))
     
    142142        break;
    143143    }
    144     rtems_clock_get(RTEMS_CLOCK_GET_TICKS_SINCE_BOOT, &stop);
     144    stop = rtems_clock_get_ticks_since_boot();
    145145    printf("P%" PRIdPTR "-F ticks:%d\n", argument, stop);
    146146  }
  • testsuites/sptests/spedfsched03/tasks_aperiodic.c

    re334edd r3c69c467  
    3939  }
    4040
    41   rtems_clock_get(RTEMS_CLOCK_GET_TICKS_SINCE_BOOT, &start);
     41  start = rtems_clock_get_ticks_since_boot();
    4242  printf("AT%" PRIdPTR "-S ticks:%d\n", argument, start);
    4343  /* active computing */
    4444
    4545  while(FOREVER) {
    46     rtems_clock_get(RTEMS_CLOCK_GET_TICKS_SINCE_BOOT, &now);
     46    now = rtems_clock_get_ticks_since_boot();
    4747    if (now >= start + Execution[argument]) break;
    4848  }
    49   rtems_clock_get(RTEMS_CLOCK_GET_TICKS_SINCE_BOOT, &stop);
     49  stop = rtems_clock_get_ticks_since_boot();
    5050  printf("P%" PRIdPTR "-F ticks:%d\n", argument, stop);
    5151
  • testsuites/sptests/spedfsched03/tasks_periodic.c

    re334edd r3c69c467  
    5959      printf("P%" PRIdPTR " - Deadline miss\n", argument);
    6060
    61     rtems_clock_get(RTEMS_CLOCK_GET_TICKS_SINCE_BOOT, &start);
     61    start = rtems_clock_get_ticks_since_boot();
    6262    printf("P%" PRIdPTR "-S ticks:%d\n", argument, start);
    6363    if ( start >= 2*HP_LENGTH ) break; /* stop */
     
    6666    /* using periodic statistics */
    6767    while(FOREVER) {
    68       rtems_clock_get(RTEMS_CLOCK_GET_TICKS_SINCE_BOOT, &now);
     68      now = rtems_clock_get_ticks_since_boot();
    6969      if (now >= start + Execution[argument]) break;
    7070    }
    71     rtems_clock_get(RTEMS_CLOCK_GET_TICKS_SINCE_BOOT, &stop);
     71    stop = rtems_clock_get_ticks_since_boot();
    7272    printf("P%" PRIdPTR "-F ticks:%d\n", argument, stop);
    7373  }
  • testsuites/sptests/spqreslib/task_periodic.c

    re334edd r3c69c467  
    101101      printf( "P%" PRIdPTR " - Deadline miss\n", argument );
    102102
    103     rtems_clock_get( RTEMS_CLOCK_GET_TICKS_SINCE_BOOT, &start );
     103    start = rtems_clock_get_ticks_since_boot();
    104104    printf( "P%" PRIdPTR "-S ticks:%d\n", argument, start );
    105105    if ( start > 4*Period+Phase ) break; /* stop */
    106106    /* active computing */
    107107    while(FOREVER) {
    108       rtems_clock_get( RTEMS_CLOCK_GET_TICKS_SINCE_BOOT, &now );
     108      now = rtems_clock_get_ticks_since_boot();
    109109      if ( now >= start + Execution ) break;
    110110
     
    118118      }
    119119    }
    120     rtems_clock_get( RTEMS_CLOCK_GET_TICKS_SINCE_BOOT, &stop );
     120    stop = rtems_clock_get_ticks_since_boot();
    121121    printf( "P%" PRIdPTR "-F ticks:%d\n", argument, stop );
    122122  }
Note: See TracChangeset for help on using the changeset viewer.