Changeset 424ee2ba in rtems


Ignore:
Timestamp:
Aug 31, 2008, 4:47:17 PM (11 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.9, master
Children:
4074e70b
Parents:
674a980
Message:

2008-08-31 Joel Sherrill <joel.sherrill@…>

  • timer/timer.c: Rename timer driver methods to follow RTEMS programming conventions.
Location:
c/src/lib/libbsp
Files:
12 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/m68k/uC5282/ChangeLog

    r674a980 r424ee2ba  
     12008-08-31      Joel Sherrill <joel.sherrill@oarcorp.com>
     2
     3        * timer/timer.c: Rename timer driver methods to follow RTEMS
     4        programming conventions.
     5
    162008-05-23      Joel Sherrill <joel.sherrill@OARcorp.com>
    27
  • c/src/lib/libbsp/m68k/uC5282/timer/timer.c

    r674a980 r424ee2ba  
    1818
    1919void
    20 Timer_initialize(void)
     20benchmark_timerinitialize(void)
    2121{
    2222    int preScaleDivisor = bsp_get_CPU_clock_speed() / 1000000;
     
    3636 */
    3737int
    38 Read_timer(void)
     38benchmark_timerread(void)
    3939{
    4040    return MCF5282_TIMER3_DTCN;
     
    4646 */
    4747rtems_status_code
    48 Empty_function(void)
     48benchmark_timerempty_function(void)
    4949{
    5050    return RTEMS_SUCCESSFUL;
     
    5252
    5353void
    54 Set_find_average_overhead(rtems_boolean find_flag)
     54benchmark_timerdisable_subtracting_average_overhead(rtems_boolean find_flag)
    5555{
    5656}
  • c/src/lib/libbsp/sh/simsh4/ChangeLog

    r674a980 r424ee2ba  
     12008-08-31      Joel Sherrill <joel.sherrill@oarcorp.com>
     2
     3        * timer/timer.c: Rename timer driver methods to follow RTEMS
     4        programming conventions.
     5
    162008-08-27      Ralf Corsépius <ralf.corsepius@rtems.org>
    27
  • c/src/lib/libbsp/sh/simsh4/timer/timer.c

    r674a980 r424ee2ba  
    2323uint32_t         Timer_interrupts;
    2424
    25 bool Timer_driver_Find_average_overhead;
     25bool benchmark_timerfind_average_overhead;
    2626
    2727/* External assembler interrupt handler routine */
    2828extern rtems_isr timerisr(rtems_vector_number vector);
    2929
    30 /* Timer_initialize --
     30/* benchmark_timerinitialize --
    3131 *     Initialize timer 2 for accurate time measurement.
    3232 *
     
    3838 */
    3939void
    40 Timer_initialize(void)
     40benchmark_timerinitialize(void)
    4141{
    4242    return;
     
    4444
    4545/*
    46  *  The following controls the behavior of Read_timer().
     46 *  The following controls the behavior of benchmark_timerread().
    4747 *
    4848 *  FIND_AVG_OVERHEAD *  instructs the routine to return the "raw" count.
     
    6060#define LEAST_VALID       1  /* Don't trust a clicks value lower than this */
    6161
    62 /* Read_timer --
     62/* benchmark_timerread --
    6363 *     Read timer value in microsecond units since timer start.
    6464 *
     
    7070 */
    7171int
    72 Read_timer( void )
     72benchmark_timerread( void )
    7373{
    7474    return 0;
    7575}
    7676
    77 /* Empty_function --
     77/* benchmark_timerempty_function --
    7878 *     Empty function call used in loops to measure basic cost of looping
    7979 *     in Timing Test Suite.
     
    8686 */
    8787rtems_status_code
    88 Empty_function(void)
     88benchmark_timerempty_function(void)
    8989{
    9090    return RTEMS_SUCCESSFUL;
    9191}
    9292
    93 /* Set_find_average_overhead --
     93/* benchmark_timerdisable_subtracting_average_overhead --
    9494 *     This routine is invoked by the "Check Timer" (tmck) test in the
    95  *     RTEMS Timing Test Suite. It makes the Read_timer routine not
     95 *     RTEMS Timing Test Suite. It makes the benchmark_timerread routine not
    9696 *     subtract the overhead required to initialize and read the benchmark
    9797 *     timer.
     
    104104 */
    105105void
    106 Set_find_average_overhead(bool find_flag)
     106benchmark_timerdisable_subtracting_average_overhead(bool find_flag)
    107107{
    108   Timer_driver_Find_average_overhead = find_flag;
     108  benchmark_timerfind_average_overhead = find_flag;
    109109}
  • c/src/lib/libbsp/sparc/erc32/ChangeLog

    r674a980 r424ee2ba  
     12008-08-31      Joel Sherrill <joel.sherrill@oarcorp.com>
     2
     3        * timer/timer.c: Rename timer driver methods to follow RTEMS
     4        programming conventions.
     5
    162008-08-18      Ralf Corsépius <ralf.corsepius@rtems.org>
    27
  • c/src/lib/libbsp/sparc/erc32/timer/timer.c

    r674a980 r424ee2ba  
    2323#include <bsp.h>
    2424
    25 rtems_boolean Timer_driver_Find_average_overhead;
     25rtems_boolean benchmark_timerfind_average_overhead;
    2626
    27 rtems_boolean Timer_driver_Is_initialized = FALSE;
     27rtems_boolean benchmark_timeris_initialized = FALSE;
    2828
    29 void Timer_initialize(void)
     29void benchmark_timerinitialize(void)
    3030{
    3131  /*
     
    3333   */
    3434
    35   if ( Timer_driver_Is_initialized == FALSE ) {
     35  if ( benchmark_timeris_initialized == FALSE ) {
    3636
    3737    /* approximately 1 us per countdown */
     
    4040
    4141  } else {
    42     Timer_driver_Is_initialized = TRUE;
     42    benchmark_timeris_initialized = TRUE;
    4343  }
    4444
     
    6464#endif
    6565
    66 int Read_timer(void)
     66int benchmark_timerread(void)
    6767{
    6868  uint32_t          total;
     
    7272  total = 0xffffffff - total;
    7373
    74   if ( Timer_driver_Find_average_overhead == 1 )
     74  if ( benchmark_timerfind_average_overhead == 1 )
    7575    return total;          /* in one microsecond units */
    7676
     
    8181}
    8282
    83 rtems_status_code Empty_function( void )
     83rtems_status_code benchmark_timerempty_function( void )
    8484{
    8585  return RTEMS_SUCCESSFUL;
    8686}
    8787
    88 void Set_find_average_overhead(
     88void benchmark_timerdisable_subtracting_average_overhead(
    8989  rtems_boolean find_flag
    9090)
    9191{
    92   Timer_driver_Find_average_overhead = find_flag;
     92  benchmark_timerfind_average_overhead = find_flag;
    9393}
  • c/src/lib/libbsp/sparc/leon2/ChangeLog

    r674a980 r424ee2ba  
     12008-08-31      Joel Sherrill <joel.sherrill@oarcorp.com>
     2
     3        * timer/timer.c: Rename timer driver methods to follow RTEMS
     4        programming conventions.
     5
    162008-08-18      Ralf Corsépius <ralf.corsepius@rtems.org>
    27
  • c/src/lib/libbsp/sparc/leon2/timer/timer.c

    r674a980 r424ee2ba  
    2323#include <bsp.h>
    2424
    25 rtems_boolean Timer_driver_Find_average_overhead;
     25rtems_boolean benchmark_timerfind_average_overhead;
    2626
    27 rtems_boolean Timer_driver_Is_initialized = FALSE;
     27rtems_boolean benchmark_timeris_initialized = FALSE;
    2828
    29 void Timer_initialize(void)
     29void benchmark_timerinitialize(void)
    3030{
    3131  /*
     
    3333   */
    3434
    35   if ( Timer_driver_Is_initialized == FALSE ) {
     35  if ( benchmark_timeris_initialized == FALSE ) {
    3636
    3737    /* approximately 1 us per countdown */
     
    4040
    4141  } else {
    42     Timer_driver_Is_initialized = TRUE;
     42    benchmark_timeris_initialized = TRUE;
    4343  }
    4444
     
    5454#define LEAST_VALID       2  /* Don't trust a value lower than this */
    5555
    56 int Read_timer(void)
     56int benchmark_timerread(void)
    5757{
    5858  uint32_t total;
     
    6262  total = 0xffffff - total;
    6363
    64   if ( Timer_driver_Find_average_overhead == 1 )
     64  if ( benchmark_timerfind_average_overhead == 1 )
    6565    return total;          /* in one microsecond units */
    6666
     
    7171}
    7272
    73 rtems_status_code Empty_function( void )
     73rtems_status_code benchmark_timerempty_function( void )
    7474{
    7575  return RTEMS_SUCCESSFUL;
    7676}
    7777
    78 void Set_find_average_overhead(
     78void benchmark_timerdisable_subtracting_average_overhead(
    7979  rtems_boolean find_flag
    8080)
    8181{
    82   Timer_driver_Find_average_overhead = find_flag;
     82  benchmark_timerfind_average_overhead = find_flag;
    8383}
  • c/src/lib/libbsp/sparc/leon3/ChangeLog

    r674a980 r424ee2ba  
     12008-08-31      Joel Sherrill <joel.sherrill@oarcorp.com>
     2
     3        * timer/timer.c: Rename timer driver methods to follow RTEMS
     4        programming conventions.
     5
    162008-08-18      Ralf Corsépius <ralf.corsepius@rtems.org>
    27
  • c/src/lib/libbsp/sparc/leon3/timer/timer.c

    r674a980 r424ee2ba  
    3131#endif
    3232
    33 rtems_boolean Timer_driver_Find_average_overhead;
     33rtems_boolean benchmark_timerfind_average_overhead;
    3434
    35 rtems_boolean Timer_driver_Is_initialized = FALSE;
     35rtems_boolean benchmark_timeris_initialized = FALSE;
    3636
    3737extern volatile LEON3_Timer_Regs_Map *LEON3_Timer_Regs;
    3838
    39 void Timer_initialize(void)
     39void benchmark_timerinitialize(void)
    4040{
    4141  /*
     
    4343   */
    4444  if (LEON3_Timer_Regs) {
    45     if ( Timer_driver_Is_initialized == FALSE ) {
     45    if ( benchmark_timeris_initialized == FALSE ) {
    4646      /* approximately 1 us per countdown */
    4747      LEON3_Timer_Regs->timer[LEON3_TIMER_INDEX].reload = 0xffffff;
    4848      LEON3_Timer_Regs->timer[LEON3_TIMER_INDEX].value = 0xffffff;
    4949    } else {
    50       Timer_driver_Is_initialized = TRUE;
     50      benchmark_timeris_initialized = TRUE;
    5151    }
    5252    LEON3_Timer_Regs->timer[LEON3_TIMER_INDEX].conf = LEON3_GPTIMER_EN | LEON3_GPTIMER_LD;
     
    5858#define LEAST_VALID       2  /* Don't trust a value lower than this */
    5959
    60 int Read_timer(void)
     60int benchmark_timerread(void)
    6161{
    6262  uint32_t total;
     
    6767    total = 0xffffff - total;
    6868   
    69     if ( Timer_driver_Find_average_overhead == 1 )
     69    if ( benchmark_timerfind_average_overhead == 1 )
    7070      return total;          /* in one microsecond units */
    7171   
     
    7878}
    7979
    80 rtems_status_code Empty_function( void )
     80rtems_status_code benchmark_timerempty_function( void )
    8181{
    8282  return RTEMS_SUCCESSFUL;
    8383}
    8484
    85 void Set_find_average_overhead(
     85void benchmark_timerdisable_subtracting_average_overhead(
    8686  rtems_boolean find_flag
    8787)
    8888{
    89   Timer_driver_Find_average_overhead = find_flag;
     89  benchmark_timerfind_average_overhead = find_flag;
    9090}
  • c/src/lib/libbsp/unix/posix/ChangeLog

    r674a980 r424ee2ba  
     12008-08-31      Joel Sherrill <joel.sherrill@oarcorp.com>
     2
     3        * timer/timer.c: Rename timer driver methods to follow RTEMS
     4        programming conventions.
     5
    162008-05-15      Joel Sherrill <joel.sherrill@OARcorp.com>
    27
  • c/src/lib/libbsp/unix/posix/timer/timer.c

    r674a980 r424ee2ba  
    2424struct timezone Time_zone;
    2525
    26 rtems_boolean   Timer_driver_Find_average_overhead;
     26rtems_boolean   benchmark_timerfind_average_overhead;
    2727
    28 void Timer_initialize()
     28void benchmark_timerinitialize()
    2929{
    3030   gettimeofday( &Timer_start, &Time_zone );
     
    3535#define LEAST_VALID       10 /* Don't trust a value lower than this */
    3636
    37 int Read_timer()
     37int benchmark_timerread()
    3838{
    3939  int total;
     
    4949  }
    5050
    51   if ( Timer_driver_Find_average_overhead == 1 )
     51  if ( benchmark_timerfind_average_overhead == 1 )
    5252      return total;          /* in countdown units */
    5353  else {
     
    5858}
    5959
    60 rtems_status_code Empty_function( void )
     60rtems_status_code benchmark_timerempty_function( void )
    6161{
    6262  return RTEMS_SUCCESSFUL;
    6363}
    6464
    65 void Set_find_average_overhead(
     65void benchmark_timerdisable_subtracting_average_overhead(
    6666  rtems_boolean find_flag
    6767)
    6868{
    69   Timer_driver_Find_average_overhead = find_flag;
     69  benchmark_timerfind_average_overhead = find_flag;
    7070}
Note: See TracChangeset for help on using the changeset viewer.