Changeset 67c191b2 in rtems


Ignore:
Timestamp:
Sep 30, 2008, 4:28:39 PM (11 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.9
Children:
db6e1f55
Parents:
fcb90b63
Message:

2008-09-30 Joel Sherrill <joel.sherrill@…>

  • timer/timer.c: Eliminate uses of old benchmark timer names.
Location:
c/src/lib
Files:
26 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/i386/i386ex/ChangeLog

    rfcb90b63 r67c191b2  
     12008-09-30      Joel Sherrill <joel.sherrill@oarcorp.com>
     2
     3        * timer/timer.c: Eliminate uses of old benchmark timer names.
     4
    152008-09-05      Joel Sherrill <joel.sherrill@OARcorp.com>
    26
  • c/src/lib/libbsp/i386/i386ex/timer/timer.c

    rfcb90b63 r67c191b2  
    1 /*  Timer_init()
    2  *
    3  *  This routine initializes the timer on the FORCE CPU-386 board.
    4  *
    5  *  Input parameters:  NONE
    6  *
    7  *  Output parameters:  NONE
    8  *
    9  *  NOTE: This routine will not work if the optimizer is enabled
    10  *        for some compilers.  The multiple writes to the Z8036
    11  *        may be optimized away.
    12  *
    13  *        It is important that the timer start/stop overhead be
    14  *        determined when porting or modifying this code.
    15  *
     1/* 
    162 *  COPYRIGHT (c) 1989-1999.
    173 *  On-Line Applications Research Corporation (OAR).
  • c/src/lib/libbsp/i386/ts_386ex/ChangeLog

    rfcb90b63 r67c191b2  
     12008-09-30      Joel Sherrill <joel.sherrill@oarcorp.com>
     2
     3        * timer/timer.c: Eliminate uses of old benchmark timer names.
     4
    152008-09-05      Joel Sherrill <joel.sherrill@OARcorp.com>
    26
  • c/src/lib/libbsp/i386/ts_386ex/timer/timer.c

    rfcb90b63 r67c191b2  
    1 /*  Timer_init()
    2  *
    3  *  This routine initializes the timer on the FORCE CPU-386 board.
    4  *
    5  *  Input parameters:  NONE
    6  *
    7  *  Output parameters:  NONE
    8  *
    9  *  NOTE: This routine will not work if the optimizer is enabled
    10  *        for some compilers.  The multiple writes to the Z8036
    11  *        may be optimized away.
    12  *
    13  *        It is important that the timer start/stop overhead be
    14  *        determined when porting or modifying this code.
    15  *
     1/*
    162 *  COPYRIGHT (c) 1989-1999.
    173 *  On-Line Applications Research Corporation (OAR).
  • c/src/lib/libbsp/m68k/gen68302/ChangeLog

    rfcb90b63 r67c191b2  
     12008-09-30      Joel Sherrill <joel.sherrill@oarcorp.com>
     2
     3        * timer/timer.c: Eliminate uses of old benchmark timer names.
     4
    152008-09-05      Joel Sherrill <joel.sherrill@OARcorp.com>
    26
  • c/src/lib/libbsp/m68k/gen68302/timer/timer.c

    rfcb90b63 r67c191b2  
    1 /*  Timer_init()
    2  *
    3  *  This routine initializes TIMER 2 for an MC68302.
    4  *
    5  *  Input parameters:  NONE
    6  *
    7  *  Output parameters:  NONE
    8  *
    9  *  NOTE: It is important that the timer start/stop overhead be
    10  *        determined when porting or modifying this code.
    11  *
     1/*
    122 *  COPYRIGHT (c) 1989-1999.
    133 *  On-Line Applications Research Corporation (OAR).
  • c/src/lib/libbsp/m68k/gen68340/ChangeLog

    rfcb90b63 r67c191b2  
     12008-09-30      Joel Sherrill <joel.sherrill@oarcorp.com>
     2
     3        * timer/timer.c: Eliminate uses of old benchmark timer names.
     4
    152008-09-30      Ralf Corsépius <ralf.corsepius@rtems.org>
    26
  • c/src/lib/libbsp/m68k/gen68340/timer/timer.c

    rfcb90b63 r67c191b2  
    11/*
    2  * Timer_init()
    3  *
    42 * ATTENTION: AS MC68349 has no built-in Timer, the following code doesn't work
    53 *            in a MC68349. You can't use FIFO full mode for the moment, but
  • c/src/lib/libbsp/m68k/gen68360/ChangeLog

    rfcb90b63 r67c191b2  
     12008-09-30      Joel Sherrill <joel.sherrill@oarcorp.com>
     2
     3        * timer/timer.c: Eliminate uses of old benchmark timer names.
     4
    152008-09-06      Ralf Corsépius <ralf.corsepius@rtems.org>
    26
  • c/src/lib/libbsp/m68k/gen68360/timer/timer.c

    rfcb90b63 r67c191b2  
    11/*
    2  * Timer_init()
    3  *
    42 * Use TIMER 1 and TIMER 2 for Timing Test Suite
    5  *
    63 * The hardware on the MC68360 makes these routines very simple.
    74 *
  • c/src/lib/libbsp/m68k/idp/ChangeLog

    rfcb90b63 r67c191b2  
     12008-09-30      Joel Sherrill <joel.sherrill@oarcorp.com>
     2
     3        * timer/timer.c: Eliminate uses of old benchmark timer names.
     4
    152008-09-29      Ralf Corsépius <ralf.corsepius@rtems.org>
    26
  • c/src/lib/libbsp/m68k/idp/timer/timer.c

    rfcb90b63 r67c191b2  
    1 /*  Timer_init()
    2  *
    3  *  This routine initializes the MC68230 timer on the Motorola IDP board.
    4  *
    5  *  Input parameters:  NONE
    6  *
    7  *  Output parameters:  NONE
    8  *
    9  *  NOTE: This routine will not work if the optimizer is enabled
    10  *        for some compilers.  The multiple writes to the MC68230
    11  *        may be optimized away.
    12  *
    13  *        It is important that the timer start/stop overhead be
    14  *        determined when porting or modifying this code.
    15  *
     1/*
    162 *  Code Modified for the MC68230 by Doug McBride, Colorado Space Grant College
    173 *
  • c/src/lib/libbsp/m68k/mrm332/ChangeLog

    rfcb90b63 r67c191b2  
     12008-09-30      Joel Sherrill <joel.sherrill@oarcorp.com>
     2
     3        * timer/timer.c: Eliminate uses of old benchmark timer names.
     4
    152008-09-29      Ralf Corsépius <ralf.corsepius@rtems.org>
    26
  • c/src/lib/libbsp/m68k/mrm332/timer/timer.c

    rfcb90b63 r67c191b2  
    1 /*  Timer_init()
    2  *
    3  *  This routine is not implemented for this BSP.
    4  *
    5  *  Input parameters:  NONE
    6  *
    7  *  Output parameters:  NONE
    8  *
    9  *  NOTE: It is important that the timer start/stop overhead be
    10  *        determined when porting or modifying this code.
    11  *
     1/*
    122 *  COPYRIGHT (c) 1989-1999.
    133 *  On-Line Applications Research Corporation (OAR).
  • c/src/lib/libbsp/m68k/mvme136/ChangeLog

    rfcb90b63 r67c191b2  
     12008-09-30      Joel Sherrill <joel.sherrill@oarcorp.com>
     2
     3        * timer/timer.c: Eliminate uses of old benchmark timer names.
     4
    152008-09-05      Joel Sherrill <joel.sherrill@OARcorp.com>
    26
  • c/src/lib/libbsp/m68k/mvme136/timer/timer.c

    rfcb90b63 r67c191b2  
    1 /*  Timer_init()
    2  *
    3  *  This routine initializes the Z8036 timer on the MVME136 board.
    4  *
    5  *  Input parameters:  NONE
    6  *
    7  *  Output parameters:  NONE
    8  *
    9  *  NOTE: This routine will not work if the optimizer is enabled
    10  *        for some compilers.  The multiple writes to the Z8036
    11  *        may be optimized away.
    12  *
    13  *        It is important that the timer start/stop overhead be
    14  *        determined when porting or modifying this code.
    15  *
     1/*
    162 *  COPYRIGHT (c) 1989-1999.
    173 *  On-Line Applications Research Corporation (OAR).
  • c/src/lib/libbsp/m68k/mvme147/ChangeLog

    rfcb90b63 r67c191b2  
     12008-09-30      Joel Sherrill <joel.sherrill@oarcorp.com>
     2
     3        * timer/timer.c: Eliminate uses of old benchmark timer names.
     4
    152008-09-05      Joel Sherrill <joel.sherrill@OARcorp.com>
    26
  • c/src/lib/libbsp/m68k/mvme147/timer/timer.c

    rfcb90b63 r67c191b2  
    1 /*  Timer_init()
    2  *
    3  *  This routine initializes the PCC timer on the MVME147 board.
    4  *
    5  *  Input parameters:  NONE
    6  *
    7  *  Output parameters:  NONE
    8  *
    9  *  NOTE: It is important that the timer start/stop overhead be
    10  *        determined when porting or modifying this code.
    11  *
     1/*
    122 *  COPYRIGHT (c) 1989-1999.
    133 *  On-Line Applications Research Corporation (OAR).
  • c/src/lib/libbsp/m68k/mvme162/ChangeLog

    rfcb90b63 r67c191b2  
     12008-09-30      Joel Sherrill <joel.sherrill@oarcorp.com>
     2
     3        * timer/timer.c: Eliminate uses of old benchmark timer names.
     4
    152008-09-05      Joel Sherrill <joel.sherrill@OARcorp.com>
    26
  • c/src/lib/libbsp/m68k/mvme162/timer/timer.c

    rfcb90b63 r67c191b2  
    1 /*  Timer_init()
    2  *
     1/*
    32 *  This routine initializes the Tick Timer 1 on the MVME162 board.
    4  *
    5  *  Input parameters:  NONE
    6  *
    7  *  Output parameters:  NONE
    8  *
    9  *  NOTE: This routine will not work if the optimizer is enabled
    10  *        for some compilers.  The multiple writes
    11  *        may be optimized away.
    12  *
    13  *        It is important that the timer start/stop overhead be
    14  *        determined when porting or modifying this code.
    153 *
    164 *  COPYRIGHT (c) 1989-1999.
  • c/src/lib/libbsp/m68k/ods68302/ChangeLog

    rfcb90b63 r67c191b2  
     12008-09-30      Joel Sherrill <joel.sherrill@oarcorp.com>
     2
     3        * timer/timer.c: Eliminate uses of old benchmark timer names.
     4
    152008-09-06      Ralf Corsépius <ralf.corsepius@rtems.org>
    26
  • c/src/lib/libbsp/m68k/ods68302/timer/timer.c

    rfcb90b63 r67c191b2  
    1 /*  Timer_init()
     1/*
    22 *
    33 *  This routine initializes TIMER 2 for an MC68302.
    4  *
    5  *  Input parameters:  NONE
    6  *
    7  *  Output parameters:  NONE
    8  *
    9  *  NOTE: It is important that the timer start/stop overhead be
    10  *        determined when porting or modifying this code.
    114 *
    125 *  COPYRIGHT (c) 1989-1999.
  • c/src/lib/libbsp/powerpc/tqm8xx/ChangeLog

    rfcb90b63 r67c191b2  
     12008-09-30      Joel Sherrill <joel.sherrill@oarcorp.com>
     2
     3        * timer/timer.c: Eliminate uses of old benchmark timer names.
     4
    152008-09-24      Joel Sherrill <joel.sherrill@OARcorp.com>
    26
  • c/src/lib/libbsp/powerpc/tqm8xx/timer/timer.c

    rfcb90b63 r67c191b2  
    2222\*===============================================================*/
    2323/*
    24  * Timer_init()
     24 * benchmark_timer_initialize()
    2525 *
    2626 * Use TIMER 1 and TIMER 2 for Timing Test Suite
     
    5353#include <mpc8xx.h>
    5454
     55bool benchmark_timer_find_average_overhead;
     56
    5557void
    56 Timer_initialize (void)
     58benchmark_timer_initialize (void)
    5759{
    5860        /*
     
    8587 * Return timer value in microsecond units
    8688 */
    87 int
    88 Read_timer (void)
     89int benchmark_timer_read(void)
    8990{
    9091  int retval;
     
    9495}
    9596
    96 /*
    97  * Empty function call used in loops to measure basic cost of looping
    98  * in Timing Test Suite.
    99  */
    100 rtems_status_code
    101 Empty_function (void)
     97void benchmark_timer_disable_subtracting_average_overhead(
     98  bool find_flag
     99)
    102100{
    103         return RTEMS_SUCCESSFUL;
     101  benchmark_timer_find_average_overhead = find_flag;
    104102}
    105 
    106 void
    107 Set_find_average_overhead(bool find_flag)
    108 {
    109 }
  • c/src/lib/libcpu/mips/ChangeLog

    rfcb90b63 r67c191b2  
     12008-09-30      Joel Sherrill <joel.sherrill@oarcorp.com>
     2
     3        * timer/timer.c: Eliminate uses of old benchmark timer names.
     4
    152008-09-05      Joel Sherrill <joel.sherrill@OARcorp.com>
    26
  • c/src/lib/libcpu/mips/timer/timer.c

    rfcb90b63 r67c191b2  
    5454
    5555static bool benchmark_timer_find_average_overhead;
    56 static uint32_t   Timer_initial_value = 0;
     56static uint32_t   benchmark_timer_initial_value = 0;
    5757
    5858void benchmark_timer_initialize( void )
    5959{
    60    Timer_initial_value = mips_read_timer();
     60   benchmark_timer_initial_value = mips_read_timer();
    6161  /*
    6262   *  Somehow start the timer
     
    9191
    9292  clicks = mips_read_timer();   /* XXX: read some HW here */
    93   if (clicks < Timer_initial_value)
     93  if (clicks < benchmark_timer_initial_value)
    9494  {
    9595      clicks += TIMER_MAX_VALUE;
    9696  }
    97   clicks -= Timer_initial_value;
     97  clicks -= benchmark_timer_initial_value;
    9898
    9999  /*
Note: See TracChangeset for help on using the changeset viewer.