summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libbsp/m68k/gen68302/timer/timer.c
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2008-08-31 18:17:35 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2008-08-31 18:17:35 +0000
commit6b2923cbc3d60fb3c204677bb0eed2afaedfa0c7 (patch)
tree581283d14fa260fe96648952f9c5b7332551330e /c/src/lib/libbsp/m68k/gen68302/timer/timer.c
parent2008-08-31 Joel Sherrill <joel.sherrill@oarcorp.com> (diff)
downloadrtems-6b2923cbc3d60fb3c204677bb0eed2afaedfa0c7.tar.bz2
2008-08-31 Joel Sherrill <joel.sherrill@oarcorp.com>
* timer/timer.c, timer/timerisr.S: Eliminate empty function from every benchmark timer driver. Fix spelling.
Diffstat (limited to 'c/src/lib/libbsp/m68k/gen68302/timer/timer.c')
-rw-r--r--c/src/lib/libbsp/m68k/gen68302/timer/timer.c24
1 files changed, 7 insertions, 17 deletions
diff --git a/c/src/lib/libbsp/m68k/gen68302/timer/timer.c b/c/src/lib/libbsp/m68k/gen68302/timer/timer.c
index 57db48e26a..eaa64e54a5 100644
--- a/c/src/lib/libbsp/m68k/gen68302/timer/timer.c
+++ b/c/src/lib/libbsp/m68k/gen68302/timer/timer.c
@@ -40,11 +40,11 @@
uint32_t Timer_interrupts;
-rtems_boolean benchmark_timerfind_average_overhead;
+rtems_boolean benchmark_timer_find_average_overhead;
rtems_isr timerisr(void);
-void benchmark_timerinitialize( void )
+void benchmark_timer_initialize( void )
{
m302.reg.tmr2 = 0; /* disable timer */
@@ -56,7 +56,7 @@ void benchmark_timerinitialize( void )
}
/*
- * The following controls the behavior of benchmark_timerread().
+ * The following controls the behavior of benchmark_timer_read().
*
* FIND_AVG_OVERHEAD * instructs the routine to return the "raw" count.
*
@@ -75,7 +75,7 @@ void benchmark_timerinitialize( void )
/*
* Return timer value in 1/2-microsecond units
*/
-int benchmark_timerread( void )
+int benchmark_timer_read( void )
{
uint16_t clicks;
uint32_t total;
@@ -95,7 +95,7 @@ int benchmark_timerread( void )
total = (Timer_interrupts * TRR2_VAL) + clicks;
- if ( benchmark_timerfind_average_overhead == 1 )
+ if ( benchmark_timer_find_average_overhead == 1 )
return total; /* in XXX microsecond units */
if ( total < LEAST_VALID )
@@ -108,19 +108,9 @@ int benchmark_timerread( void )
return (total - AVG_OVERHEAD) >> 1;
}
-/*
- * Empty function call used in loops to measure basic cost of looping
- * in Timing Test Suite.
- */
-
-rtems_status_code benchmark_timerempty_function(void)
-{
- return RTEMS_SUCCESSFUL;
-}
-
-void benchmark_timerdisable_subtracting_average_overhead(
+void benchmark_timer_disable_subtracting_average_overhead(
rtems_boolean find_flag
)
{
- benchmark_timerfind_average_overhead = find_flag;
+ benchmark_timer_find_average_overhead = find_flag;
}