forked from Imagelibrary/rtems
Convert to "bool".
This commit is contained in:
@@ -28,7 +28,7 @@
|
|||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
|
||||||
int Ttimer_val;
|
int Ttimer_val;
|
||||||
rtems_boolean benchmark_timer_find_average_overhead;
|
bool benchmark_timer_find_average_overhead;
|
||||||
|
|
||||||
extern void timerisr(void);
|
extern void timerisr(void);
|
||||||
extern int ClockIsOn(const rtems_raw_irq_connect_data*);
|
extern int ClockIsOn(const rtems_raw_irq_connect_data*);
|
||||||
@@ -84,11 +84,11 @@ void Timer_exit(void)
|
|||||||
void benchmark_timer_initialize(void)
|
void benchmark_timer_initialize(void)
|
||||||
{
|
{
|
||||||
|
|
||||||
static rtems_boolean First = TRUE;
|
static bool First = true;
|
||||||
|
|
||||||
if (First)
|
if (First)
|
||||||
{
|
{
|
||||||
First = FALSE;
|
First = false;
|
||||||
|
|
||||||
atexit(Timer_exit); /* Try not to hose the system at exit. */
|
atexit(Timer_exit); /* Try not to hose the system at exit. */
|
||||||
if (!i386_set_idt_entry (&timer_raw_irq_data)) {
|
if (!i386_set_idt_entry (&timer_raw_irq_data)) {
|
||||||
@@ -124,7 +124,7 @@ int benchmark_timer_read(void)
|
|||||||
|
|
||||||
/* ??? Is "do not restore old vector" causing problems? */
|
/* ??? Is "do not restore old vector" causing problems? */
|
||||||
|
|
||||||
if ( benchmark_timer_find_average_overhead == 1 )
|
if ( benchmark_timer_find_average_overhead == true )
|
||||||
return total; /* in one microsecond units */
|
return total; /* in one microsecond units */
|
||||||
|
|
||||||
else {
|
else {
|
||||||
@@ -135,7 +135,7 @@ int benchmark_timer_read(void)
|
|||||||
}
|
}
|
||||||
|
|
||||||
void benchmark_timer_disable_subtracting_average_overhead(
|
void benchmark_timer_disable_subtracting_average_overhead(
|
||||||
rtems_boolean find_flag
|
bool find_flag
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
benchmark_timer_find_average_overhead = find_flag;
|
benchmark_timer_find_average_overhead = find_flag;
|
||||||
|
|||||||
Reference in New Issue
Block a user