summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libcpu
diff options
context:
space:
mode:
authorRalf Corsepius <ralf.corsepius@rtems.org>2008-09-05 12:11:47 +0000
committerRalf Corsepius <ralf.corsepius@rtems.org>2008-09-05 12:11:47 +0000
commit3942ccef5616448fa3aea482b41dc96db6993945 (patch)
treeee2eccedd850b45dad0b58ec72b47de78f4f46e9 /c/src/lib/libcpu
parent2008-09-05 Ralf Corsépius <ralf.corsepius@rtems.org> (diff)
downloadrtems-3942ccef5616448fa3aea482b41dc96db6993945.tar.bz2
Convert to "bool".
Diffstat (limited to 'c/src/lib/libcpu')
-rw-r--r--c/src/lib/libcpu/powerpc/mpc505/timer/timer.c6
-rw-r--r--c/src/lib/libcpu/powerpc/mpc5xx/timer/timer.c4
-rw-r--r--c/src/lib/libcpu/powerpc/mpc6xx/timer/timer.c8
-rw-r--r--c/src/lib/libcpu/powerpc/mpc8260/timer/timer.c4
-rw-r--r--c/src/lib/libcpu/powerpc/mpc8xx/timer/timer.c4
-rw-r--r--c/src/lib/libcpu/powerpc/ppc403/timer/timer.c4
-rw-r--r--c/src/lib/libcpu/sh/sh7032/timer/timer.c6
-rw-r--r--c/src/lib/libcpu/sh/sh7045/timer/timer.c6
-rw-r--r--c/src/lib/libcpu/sh/sh7750/timer/timer.c6
9 files changed, 20 insertions, 28 deletions
diff --git a/c/src/lib/libcpu/powerpc/mpc505/timer/timer.c b/c/src/lib/libcpu/powerpc/mpc505/timer/timer.c
index 4bee060364..edbaded21d 100644
--- a/c/src/lib/libcpu/powerpc/mpc505/timer/timer.c
+++ b/c/src/lib/libcpu/powerpc/mpc505/timer/timer.c
@@ -16,7 +16,7 @@
#include <rtems.h>
-rtems_boolean benchmark_timer_find_average_overhead;
+bool benchmark_timer_find_average_overhead;
static unsigned int volatile lastInitValue;
@@ -47,9 +47,7 @@ int benchmark_timer_read( void )
return value - lastInitValue;
}
-void benchmark_timer_disable_subtracting_average_overhead(
- rtems_boolean find_flag
-)
+void benchmark_timer_disable_subtracting_average_overhead(bool find_flag)
{
benchmark_timer_find_average_overhead = find_flag;
}
diff --git a/c/src/lib/libcpu/powerpc/mpc5xx/timer/timer.c b/c/src/lib/libcpu/powerpc/mpc5xx/timer/timer.c
index f5b77124df..98460cafea 100644
--- a/c/src/lib/libcpu/powerpc/mpc5xx/timer/timer.c
+++ b/c/src/lib/libcpu/powerpc/mpc5xx/timer/timer.c
@@ -52,7 +52,7 @@
#include <mpc5xx.h>
static volatile uint32_t Timer_starting;
-static rtems_boolean benchmark_timer_find_average_overhead;
+static bool benchmark_timer_find_average_overhead;
/*
* This is so small that this code will be reproduced where needed.
@@ -101,7 +101,7 @@ int benchmark_timer_read(void)
}
}
-void benchmark_timer_disable_subtracting_average_overhead(rtems_boolean find_flag)
+void benchmark_timer_disable_subtracting_average_overhead(bool find_flag)
{
benchmark_timer_find_average_overhead = find_flag;
}
diff --git a/c/src/lib/libcpu/powerpc/mpc6xx/timer/timer.c b/c/src/lib/libcpu/powerpc/mpc6xx/timer/timer.c
index 6c8957f53b..0a72553b1d 100644
--- a/c/src/lib/libcpu/powerpc/mpc6xx/timer/timer.c
+++ b/c/src/lib/libcpu/powerpc/mpc6xx/timer/timer.c
@@ -21,7 +21,7 @@
uint64_t Timer_driver_Start_time;
-rtems_boolean benchmark_timer_find_average_overhead = 0;
+bool benchmark_timer_find_average_overhead = false;
unsigned clicks_overhead = 0;
/*
@@ -71,7 +71,7 @@ int benchmark_timer_read(void)
total = (uint32_t) total64;
- if ( benchmark_timer_find_average_overhead == 1 )
+ if ( benchmark_timer_find_average_overhead == true )
return total; /* in "clicks" of the decrementer units */
return (int) BSP_Convert_decrementer(total - clicks_overhead);
@@ -85,9 +85,7 @@ unsigned long long Read_long_timer(void)
return BSP_Convert_decrementer(total64 - clicks_overhead);
}
-void benchmark_timer_disable_subtracting_average_overhead(
- rtems_boolean find_flag
-)
+void benchmark_timer_disable_subtracting_average_overhead(bool find_flag)
{
benchmark_timer_find_average_overhead = find_flag;
}
diff --git a/c/src/lib/libcpu/powerpc/mpc8260/timer/timer.c b/c/src/lib/libcpu/powerpc/mpc8260/timer/timer.c
index d4b113bf3a..4d39a056d8 100644
--- a/c/src/lib/libcpu/powerpc/mpc8260/timer/timer.c
+++ b/c/src/lib/libcpu/powerpc/mpc8260/timer/timer.c
@@ -51,7 +51,7 @@
#include <mpc8260.h>
static volatile uint32_t Timer_starting;
-static rtems_boolean benchmark_timer_find_average_overhead;
+static bool benchmark_timer_find_average_overhead;
/*
* This is so small that this code will be reproduced where needed.
@@ -100,7 +100,7 @@ int benchmark_timer_read(void)
}
}
-void benchmark_timer_disable_subtracting_average_overhead(rtems_boolean find_flag)
+void benchmark_timer_disable_subtracting_average_overhead(bool find_flag)
{
benchmark_timer_find_average_overhead = find_flag;
}
diff --git a/c/src/lib/libcpu/powerpc/mpc8xx/timer/timer.c b/c/src/lib/libcpu/powerpc/mpc8xx/timer/timer.c
index dd58cbe78e..d2996020c1 100644
--- a/c/src/lib/libcpu/powerpc/mpc8xx/timer/timer.c
+++ b/c/src/lib/libcpu/powerpc/mpc8xx/timer/timer.c
@@ -46,7 +46,7 @@
#include <mpc8xx.h>
static volatile uint32_t Timer_starting;
-static rtems_boolean benchmark_timer_find_average_overhead;
+static bool benchmark_timer_find_average_overhead;
/*
* This is so small that this code will be reproduced where needed.
@@ -91,7 +91,7 @@ int benchmark_timer_read(void)
}
}
-void benchmark_timer_disable_subtracting_average_overhead(rtems_boolean find_flag)
+void benchmark_timer_disable_subtracting_average_overhead(bool find_flag)
{
benchmark_timer_find_average_overhead = find_flag;
}
diff --git a/c/src/lib/libcpu/powerpc/ppc403/timer/timer.c b/c/src/lib/libcpu/powerpc/ppc403/timer/timer.c
index 1ac158ea5b..4280673109 100644
--- a/c/src/lib/libcpu/powerpc/ppc403/timer/timer.c
+++ b/c/src/lib/libcpu/powerpc/ppc403/timer/timer.c
@@ -45,7 +45,7 @@ extern uint32_t bsp_timer_least_valid;
extern uint32_t bsp_timer_average_overhead;
static volatile uint32_t startedAt;
-static rtems_boolean subtractOverhead;
+static bool subtractOverhead;
void benchmark_timer_initialize(void)
{
@@ -67,7 +67,7 @@ int benchmark_timer_read(void)
return (total - bsp_timer_average_overhead);
}
-void benchmark_timer_disable_subtracting_average_overhead( rtems_boolean find_flag)
+void benchmark_timer_disable_subtracting_average_overhead(bool find_flag)
{
subtractOverhead = find_flag;
}
diff --git a/c/src/lib/libcpu/sh/sh7032/timer/timer.c b/c/src/lib/libcpu/sh/sh7032/timer/timer.c
index 61f00d1f85..1a245d52a3 100644
--- a/c/src/lib/libcpu/sh/sh7032/timer/timer.c
+++ b/c/src/lib/libcpu/sh/sh7032/timer/timer.c
@@ -68,7 +68,7 @@ extern rtems_isr timerisr(void);
static uint32_t Timer_interrupts;
-rtems_boolean benchmark_timer_find_average_overhead;
+bool benchmark_timer_find_average_overhead;
static uint32_t Timer_HZ ;
@@ -181,9 +181,7 @@ int benchmark_timer_read( void )
}
}
-void benchmark_timer_disable_subtracting_average_overhead(
- rtems_boolean find_flag
-)
+void benchmark_timer_disable_subtracting_average_overhead(bool find_flag)
{
benchmark_timer_find_average_overhead = find_flag;
}
diff --git a/c/src/lib/libcpu/sh/sh7045/timer/timer.c b/c/src/lib/libcpu/sh/sh7045/timer/timer.c
index 5bc4c1b0da..6ba477db18 100644
--- a/c/src/lib/libcpu/sh/sh7045/timer/timer.c
+++ b/c/src/lib/libcpu/sh/sh7045/timer/timer.c
@@ -59,7 +59,7 @@ extern rtems_isr timerisr(void);
static uint32_t Timer_interrupts;
-rtems_boolean benchmark_timer_find_average_overhead;
+bool benchmark_timer_find_average_overhead;
static uint32_t Timer_MHZ ;
@@ -177,9 +177,7 @@ int benchmark_timer_read( void )
}
}
-void benchmark_timer_disable_subtracting_average_overhead(
- rtems_boolean find_flag
-)
+void benchmark_timer_disable_subtracting_average_overhead(bool find_flag)
{
benchmark_timer_find_average_overhead = find_flag;
}
diff --git a/c/src/lib/libcpu/sh/sh7750/timer/timer.c b/c/src/lib/libcpu/sh/sh7750/timer/timer.c
index 966317140c..7d73c3e21f 100644
--- a/c/src/lib/libcpu/sh/sh7750/timer/timer.c
+++ b/c/src/lib/libcpu/sh/sh7750/timer/timer.c
@@ -49,7 +49,7 @@ static uint32_t microseconds_divider;
/* Interrupt period in microseconds */
static uint32_t microseconds_per_int;
-rtems_boolean benchmark_timer_find_average_overhead;
+bool benchmark_timer_find_average_overhead;
/* benchmark_timer_initialize --
* Initialize Timer 1 to operate as a RTEMS benchmark timer:
@@ -246,13 +246,13 @@ benchmark_timer_read(void)
* timer.
*
* PARAMETERS:
- * find_flag - boolean flag, TRUE if overhead must not be subtracted.
+ * find_flag - boolean flag, true if overhead must not be subtracted.
*
* RETURNS:
* none
*/
void
-benchmark_timer_disable_subtracting_average_overhead(rtems_boolean find_flag)
+benchmark_timer_disable_subtracting_average_overhead(bool find_flag)
{
benchmark_timer_find_average_overhead = find_flag;
}