Changeset e511e126 in rtems


Ignore:
Timestamp:
Aug 31, 2008, 5:42:00 PM (11 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.9, master
Children:
722ab6d
Parents:
35eb543d
Message:

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

  • timer/timer.c: Eliminate empty function from every benchmark timer driver. Fix spelling.
Location:
c/src/lib/libbsp
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/sparc/erc32/ChangeLog

    r35eb543d re511e126  
     12008-08-31      Joel Sherrill <joel.sherrill@oarcorp.com>
     2
     3        * timer/timer.c: Eliminate empty function from every benchmark timer
     4        driver. Fix spelling.
     5
    162008-08-31      Joel Sherrill <joel.sherrill@oarcorp.com>
    27
  • c/src/lib/libbsp/sparc/erc32/timer/timer.c

    r35eb543d re511e126  
    2323#include <bsp.h>
    2424
    25 rtems_boolean benchmark_timerfind_average_overhead;
     25rtems_boolean benchmark_timer_find_average_overhead;
    2626
    27 rtems_boolean benchmark_timeris_initialized = FALSE;
     27rtems_boolean benchmark_timer_is_initialized = FALSE;
    2828
    29 void benchmark_timerinitialize(void)
     29void benchmark_timer_initialize(void)
    3030{
    3131  /*
     
    3333   */
    3434
    35   if ( benchmark_timeris_initialized == FALSE ) {
     35  if ( benchmark_timer_is_initialized == FALSE ) {
    3636
    3737    /* approximately 1 us per countdown */
     
    4040
    4141  } else {
    42     benchmark_timeris_initialized = TRUE;
     42    benchmark_timer_is_initialized = TRUE;
    4343  }
    4444
     
    6464#endif
    6565
    66 int benchmark_timerread(void)
     66int benchmark_timer_read(void)
    6767{
    6868  uint32_t          total;
     
    7272  total = 0xffffffff - total;
    7373
    74   if ( benchmark_timerfind_average_overhead == 1 )
     74  if ( benchmark_timer_find_average_overhead == 1 )
    7575    return total;          /* in one microsecond units */
    7676
     
    8181}
    8282
    83 rtems_status_code benchmark_timerempty_function( void )
    84 {
    85   return RTEMS_SUCCESSFUL;
    86 }
    87 
    88 void benchmark_timerdisable_subtracting_average_overhead(
     83void benchmark_timer_disable_subtracting_average_overhead(
    8984  rtems_boolean find_flag
    9085)
    9186{
    92   benchmark_timerfind_average_overhead = find_flag;
     87  benchmark_timer_find_average_overhead = find_flag;
    9388}
  • c/src/lib/libbsp/sparc/leon2/ChangeLog

    r35eb543d re511e126  
     12008-08-31      Joel Sherrill <joel.sherrill@oarcorp.com>
     2
     3        * timer/timer.c: Eliminate empty function from every benchmark timer
     4        driver. Fix spelling.
     5
    162008-08-31      Joel Sherrill <joel.sherrill@oarcorp.com>
    27
  • c/src/lib/libbsp/sparc/leon2/timer/timer.c

    r35eb543d re511e126  
    2323#include <bsp.h>
    2424
    25 rtems_boolean benchmark_timerfind_average_overhead;
     25rtems_boolean benchmark_timer_find_average_overhead;
    2626
    27 rtems_boolean benchmark_timeris_initialized = FALSE;
     27rtems_boolean benchmark_timer_is_initialized = FALSE;
    2828
    29 void benchmark_timerinitialize(void)
     29void benchmark_timer_initialize(void)
    3030{
    3131  /*
     
    3333   */
    3434
    35   if ( benchmark_timeris_initialized == FALSE ) {
     35  if ( benchmark_timer_is_initialized == FALSE ) {
    3636
    3737    /* approximately 1 us per countdown */
     
    4040
    4141  } else {
    42     benchmark_timeris_initialized = TRUE;
     42    benchmark_timer_is_initialized = TRUE;
    4343  }
    4444
     
    5454#define LEAST_VALID       2  /* Don't trust a value lower than this */
    5555
    56 int benchmark_timerread(void)
     56int benchmark_timer_read(void)
    5757{
    5858  uint32_t total;
     
    6262  total = 0xffffff - total;
    6363
    64   if ( benchmark_timerfind_average_overhead == 1 )
     64  if ( benchmark_timer_find_average_overhead == 1 )
    6565    return total;          /* in one microsecond units */
    6666
     
    7171}
    7272
    73 rtems_status_code benchmark_timerempty_function( void )
    74 {
    75   return RTEMS_SUCCESSFUL;
    76 }
    77 
    78 void benchmark_timerdisable_subtracting_average_overhead(
     73void benchmark_timer_disable_subtracting_average_overhead(
    7974  rtems_boolean find_flag
    8075)
    8176{
    82   benchmark_timerfind_average_overhead = find_flag;
     77  benchmark_timer_find_average_overhead = find_flag;
    8378}
  • c/src/lib/libbsp/sparc/leon3/ChangeLog

    r35eb543d re511e126  
     12008-08-31      Joel Sherrill <joel.sherrill@oarcorp.com>
     2
     3        * timer/timer.c: Eliminate empty function from every benchmark timer
     4        driver. Fix spelling.
     5
    162008-08-31      Joel Sherrill <joel.sherrill@oarcorp.com>
    27
  • c/src/lib/libbsp/sparc/leon3/timer/timer.c

    r35eb543d re511e126  
    3131#endif
    3232
    33 rtems_boolean benchmark_timerfind_average_overhead;
     33rtems_boolean benchmark_timer_find_average_overhead;
    3434
    35 rtems_boolean benchmark_timeris_initialized = FALSE;
     35rtems_boolean benchmark_timer_is_initialized = FALSE;
    3636
    3737extern volatile LEON3_Timer_Regs_Map *LEON3_Timer_Regs;
    3838
    39 void benchmark_timerinitialize(void)
     39void benchmark_timer_initialize(void)
    4040{
    4141  /*
     
    4343   */
    4444  if (LEON3_Timer_Regs) {
    45     if ( benchmark_timeris_initialized == FALSE ) {
     45    if ( benchmark_timer_is_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       benchmark_timeris_initialized = TRUE;
     50      benchmark_timer_is_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 benchmark_timerread(void)
     60int benchmark_timer_read(void)
    6161{
    6262  uint32_t total;
     
    6767    total = 0xffffff - total;
    6868   
    69     if ( benchmark_timerfind_average_overhead == 1 )
     69    if ( benchmark_timer_find_average_overhead == 1 )
    7070      return total;          /* in one microsecond units */
    7171   
     
    7878}
    7979
    80 rtems_status_code benchmark_timerempty_function( void )
    81 {
    82   return RTEMS_SUCCESSFUL;
    83 }
    84 
    85 void benchmark_timerdisable_subtracting_average_overhead(
     80void benchmark_timer_disable_subtracting_average_overhead(
    8681  rtems_boolean find_flag
    8782)
    8883{
    89   benchmark_timerfind_average_overhead = find_flag;
     84  benchmark_timer_find_average_overhead = find_flag;
    9085}
  • c/src/lib/libbsp/unix/posix/ChangeLog

    r35eb543d re511e126  
     12008-08-31      Joel Sherrill <joel.sherrill@oarcorp.com>
     2
     3        * timer/timer.c: Eliminate empty function from every benchmark timer
     4        driver. Fix spelling.
     5
    162008-08-31      Joel Sherrill <joel.sherrill@oarcorp.com>
    27
  • c/src/lib/libbsp/unix/posix/timer/timer.c

    r35eb543d re511e126  
    2424struct timezone Time_zone;
    2525
    26 rtems_boolean   benchmark_timerfind_average_overhead;
     26rtems_boolean   benchmark_timer_find_average_overhead;
    2727
    28 void benchmark_timerinitialize()
     28void benchmark_timer_initialize()
    2929{
    3030   gettimeofday( &Timer_start, &Time_zone );
     
    3535#define LEAST_VALID       10 /* Don't trust a value lower than this */
    3636
    37 int benchmark_timerread()
     37int benchmark_timer_read()
    3838{
    3939  int total;
     
    4949  }
    5050
    51   if ( benchmark_timerfind_average_overhead == 1 )
     51  if ( benchmark_timer_find_average_overhead == 1 )
    5252      return total;          /* in countdown units */
    5353  else {
     
    5858}
    5959
    60 rtems_status_code benchmark_timerempty_function( void )
    61 {
    62   return RTEMS_SUCCESSFUL;
    63 }
    64 
    65 void benchmark_timerdisable_subtracting_average_overhead(
     60void benchmark_timer_disable_subtracting_average_overhead(
    6661  rtems_boolean find_flag
    6762)
    6863{
    69   benchmark_timerfind_average_overhead = find_flag;
     64  benchmark_timer_find_average_overhead = find_flag;
    7065}
Note: See TracChangeset for help on using the changeset viewer.