Changeset 3942cce in rtems


Ignore:
Timestamp:
Sep 5, 2008, 12:11:47 PM (11 years ago)
Author:
Ralf Corsepius <ralf.corsepius@…>
Branches:
4.10, 4.11, 4.9, master
Children:
4fa2a986
Parents:
1fb90150
Message:

Convert to "bool".

Location:
c/src/lib/libcpu
Files:
9 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libcpu/powerpc/mpc505/timer/timer.c

    r1fb90150 r3942cce  
    1717#include <rtems.h>
    1818
    19 rtems_boolean benchmark_timer_find_average_overhead;
     19bool benchmark_timer_find_average_overhead;
    2020
    2121static unsigned int volatile lastInitValue;
     
    4848}
    4949
    50 void benchmark_timer_disable_subtracting_average_overhead(
    51   rtems_boolean find_flag
    52 )
     50void benchmark_timer_disable_subtracting_average_overhead(bool find_flag)
    5351{
    5452  benchmark_timer_find_average_overhead = find_flag;
  • c/src/lib/libcpu/powerpc/mpc5xx/timer/timer.c

    r1fb90150 r3942cce  
    5353
    5454static volatile uint32_t Timer_starting;
    55 static rtems_boolean benchmark_timer_find_average_overhead;
     55static bool benchmark_timer_find_average_overhead;
    5656
    5757/*
     
    102102}
    103103
    104 void benchmark_timer_disable_subtracting_average_overhead(rtems_boolean find_flag)
     104void benchmark_timer_disable_subtracting_average_overhead(bool find_flag)
    105105{
    106106  benchmark_timer_find_average_overhead = find_flag;
  • c/src/lib/libcpu/powerpc/mpc6xx/timer/timer.c

    r1fb90150 r3942cce  
    2222uint64_t   Timer_driver_Start_time;
    2323
    24 rtems_boolean benchmark_timer_find_average_overhead = 0;
     24bool benchmark_timer_find_average_overhead = false;
    2525unsigned clicks_overhead = 0;
    2626
     
    7272  total = (uint32_t) total64;
    7373
    74   if ( benchmark_timer_find_average_overhead == 1 )
     74  if ( benchmark_timer_find_average_overhead == true )
    7575    return total;          /* in "clicks" of the decrementer units */
    7676
     
    8686}
    8787
    88 void benchmark_timer_disable_subtracting_average_overhead(
    89   rtems_boolean find_flag
    90 )
     88void benchmark_timer_disable_subtracting_average_overhead(bool find_flag)
    9189{
    9290  benchmark_timer_find_average_overhead = find_flag;
  • c/src/lib/libcpu/powerpc/mpc8260/timer/timer.c

    r1fb90150 r3942cce  
    5252
    5353static volatile uint32_t   Timer_starting;
    54 static rtems_boolean benchmark_timer_find_average_overhead;
     54static bool benchmark_timer_find_average_overhead;
    5555
    5656/*
     
    101101}
    102102
    103 void benchmark_timer_disable_subtracting_average_overhead(rtems_boolean find_flag)
     103void benchmark_timer_disable_subtracting_average_overhead(bool find_flag)
    104104{
    105105  benchmark_timer_find_average_overhead = find_flag;
  • c/src/lib/libcpu/powerpc/mpc8xx/timer/timer.c

    r1fb90150 r3942cce  
    4747
    4848static volatile uint32_t   Timer_starting;
    49 static rtems_boolean benchmark_timer_find_average_overhead;
     49static bool benchmark_timer_find_average_overhead;
    5050
    5151/*
     
    9292}
    9393
    94 void benchmark_timer_disable_subtracting_average_overhead(rtems_boolean find_flag)
     94void benchmark_timer_disable_subtracting_average_overhead(bool find_flag)
    9595{
    9696  benchmark_timer_find_average_overhead = find_flag;
  • c/src/lib/libcpu/powerpc/ppc403/timer/timer.c

    r1fb90150 r3942cce  
    4646
    4747static volatile uint32_t        startedAt;
    48 static rtems_boolean            subtractOverhead;
     48static bool                     subtractOverhead;
    4949
    5050void benchmark_timer_initialize(void)
     
    6868}
    6969
    70 void benchmark_timer_disable_subtracting_average_overhead( rtems_boolean find_flag)
     70void benchmark_timer_disable_subtracting_average_overhead(bool find_flag)
    7171{
    7272        subtractOverhead = find_flag;
  • c/src/lib/libcpu/sh/sh7032/timer/timer.c

    r1fb90150 r3942cce  
    6969static uint32_t   Timer_interrupts;
    7070
    71 rtems_boolean benchmark_timer_find_average_overhead;
     71bool benchmark_timer_find_average_overhead;
    7272
    7373static uint32_t   Timer_HZ ;
     
    182182}
    183183
    184 void benchmark_timer_disable_subtracting_average_overhead(
    185   rtems_boolean find_flag
    186 )
     184void benchmark_timer_disable_subtracting_average_overhead(bool find_flag)
    187185{
    188186  benchmark_timer_find_average_overhead = find_flag;
  • c/src/lib/libcpu/sh/sh7045/timer/timer.c

    r1fb90150 r3942cce  
    6060static uint32_t   Timer_interrupts;
    6161
    62 rtems_boolean benchmark_timer_find_average_overhead;
     62bool benchmark_timer_find_average_overhead;
    6363
    6464static uint32_t   Timer_MHZ ;
     
    178178}
    179179
    180 void benchmark_timer_disable_subtracting_average_overhead(
    181   rtems_boolean find_flag
    182 )
     180void benchmark_timer_disable_subtracting_average_overhead(bool find_flag)
    183181{
    184182  benchmark_timer_find_average_overhead = find_flag;
  • c/src/lib/libcpu/sh/sh7750/timer/timer.c

    r1fb90150 r3942cce  
    5050static uint32_t   microseconds_per_int;
    5151
    52 rtems_boolean benchmark_timer_find_average_overhead;
     52bool benchmark_timer_find_average_overhead;
    5353
    5454/* benchmark_timer_initialize --
     
    247247 *
    248248 * PARAMETERS:
    249  *     find_flag - boolean flag, TRUE if overhead must not be subtracted.
     249 *     find_flag - boolean flag, true if overhead must not be subtracted.
    250250 *
    251251 * RETURNS:
     
    253253 */
    254254void
    255 benchmark_timer_disable_subtracting_average_overhead(rtems_boolean find_flag)
     255benchmark_timer_disable_subtracting_average_overhead(bool find_flag)
    256256{
    257257    benchmark_timer_find_average_overhead = find_flag;
Note: See TracChangeset for help on using the changeset viewer.