summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libbsp/mips/genmongoosev/timer/timer.c
diff options
context:
space:
mode:
Diffstat (limited to 'c/src/lib/libbsp/mips/genmongoosev/timer/timer.c')
-rw-r--r--c/src/lib/libbsp/mips/genmongoosev/timer/timer.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/c/src/lib/libbsp/mips/genmongoosev/timer/timer.c b/c/src/lib/libbsp/mips/genmongoosev/timer/timer.c
index c104ec25da..04e17a578c 100644
--- a/c/src/lib/libbsp/mips/genmongoosev/timer/timer.c
+++ b/c/src/lib/libbsp/mips/genmongoosev/timer/timer.c
@@ -15,7 +15,7 @@
#include <bsp.h>
-rtems_boolean Timer_driver_Find_average_overhead;
+rtems_boolean benchmark_timerfind_average_overhead;
#if defined(USE_TIMER2_FOR_CLOCK)
#define TIMER_BASE MONGOOSEV_TIMER1_BASE
@@ -25,7 +25,7 @@ rtems_boolean Timer_driver_Find_average_overhead;
#define TIMER_VECTOR MONGOOSEV_IRQ_TIMER2
#endif
-void Timer_initialize(void)
+void benchmark_timerinitialize(void)
{
/*
* Programming the compare register as the maximum value should let
@@ -56,7 +56,7 @@ void Timer_initialize(void)
/* mongoose-v can count cycles. :) */
#include <rtems/bspIo.h>
-int Read_timer(void)
+int benchmark_timerread(void)
{
uint32_t clicks;
uint32_t total;
@@ -75,7 +75,7 @@ int Read_timer(void)
if ( tcr & MONGOOSEV_TIMER_CONTROL_TIMEOUT )
printk( "MG5 timer overran\n" );
- if ( Timer_driver_Find_average_overhead == 1 )
+ if ( benchmark_timerfind_average_overhead == 1 )
return total; /* in cycle units */
if ( total < LEAST_VALID )
@@ -84,16 +84,16 @@ int Read_timer(void)
return (total - AVG_OVERHEAD) / CPU_CLOCK_RATE_MHZ;
}
-rtems_status_code Empty_function( void )
+rtems_status_code benchmark_timerempty_function( void )
{
return RTEMS_SUCCESSFUL;
}
-void Set_find_average_overhead(
+void benchmark_timerdisable_subtracting_average_overhead(
rtems_boolean find_flag
)
{
- Timer_driver_Find_average_overhead = find_flag;
+ benchmark_timerfind_average_overhead = find_flag;
}
/* eof */