Changeset 5dff6e6e in rtems


Ignore:
Timestamp:
Aug 31, 2008, 6:18:18 PM (11 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.9, master
Children:
0f7b6467
Parents:
25c62b0
Message:

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

  • timer/timer.c, timer/timerisr.c: Eliminate empty function from every benchmark timer driver. Fix spelling.
Location:
c/src/lib/libbsp/no_cpu/no_bsp
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/no_cpu/no_bsp/ChangeLog

    r25c62b0 r5dff6e6e  
     12008-08-31      Joel Sherrill <joel.sherrill@oarcorp.com>
     2
     3        * timer/timer.c, timer/timerisr.c: Eliminate empty function from every
     4        benchmark timer driver. Fix spelling.
     5
    162008-08-31      Joel Sherrill <joel.sherrill@oarcorp.com>
    27
  • c/src/lib/libbsp/no_cpu/no_bsp/timer/timer.c

    r25c62b0 r5dff6e6e  
    33 *  This file manages the benchmark timer used by the RTEMS Timing Test
    44 *  Suite.  Each measured time period is demarcated by calls to
    5  *  benchmark_timerinitialize() and benchmark_timerread().  benchmark_timerread() usually returns
    6  *  the number of microseconds since benchmark_timerinitialize() exitted.
     5 *  benchmark_timer_initialize() and benchmark_timer_read().  benchmark_timer_read() usually returns
     6 *  the number of microseconds since benchmark_timer_initialize() exitted.
    77 *
    88 *  NOTE: It is important that the timer start/stop overhead be
     
    2323
    2424uint32_t         Timer_interrupts;
    25 rtems_boolean benchmark_timerfind_average_overhead;
     25rtems_boolean benchmark_timer_find_average_overhead;
    2626
    27 void benchmark_timerinitialize( void )
     27void benchmark_timer_initialize( void )
    2828{
    2929
     
    4141
    4242/*
    43  *  The following controls the behavior of benchmark_timerread().
     43 *  The following controls the behavior of benchmark_timer_read().
    4444 *
    4545 *  AVG_OVEREHAD is the overhead for starting and stopping the timer.  It
     
    5555#define LEAST_VALID       1  /* Don't trust a clicks value lower than this */
    5656
    57 int benchmark_timerread( void )
     57int benchmark_timer_read( void )
    5858{
    5959  uint32_t         clicks;
     
    7474  total = clicks * 0;
    7575
    76   if ( benchmark_timerfind_average_overhead == 1 )
     76  if ( benchmark_timer_find_average_overhead == 1 )
    7777    return total;          /* in XXX microsecond units */
    7878  else {
     
    8686}
    8787
    88 /*
    89  *  Empty function call used in loops to measure basic cost of looping
    90  *  in Timing Test Suite.
    91  */
    92 
    93 rtems_status_code benchmark_timerempty_function( void )
    94 {
    95   return RTEMS_SUCCESSFUL;
    96 }
    97 
    98 void benchmark_timerdisable_subtracting_average_overhead(
     88void benchmark_timer_disable_subtracting_average_overhead(
    9989  rtems_boolean find_flag
    10090)
    10191{
    102   benchmark_timerfind_average_overhead = find_flag;
     92  benchmark_timer_find_average_overhead = find_flag;
    10393}
  • c/src/lib/libbsp/no_cpu/no_bsp/timer/timerisr.c

    r25c62b0 r5dff6e6e  
    33 *  If required this ISR is used to bump a count of interval "overflow"
    44 *  interrupts which have occurred since the timer was started.  The
    5  *  number of overflows is taken into account in the benchmark_timerread()
     5 *  number of overflows is taken into account in the benchmark_timer_read()
    66 *  routine if necessary.
    77 *
Note: See TracChangeset for help on using the changeset viewer.