summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libbsp/sparc/leon2/timer/timer.c
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2008-08-31 17:42:00 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2008-08-31 17:42:00 +0000
commite511e126268d719ec86f6633b17c47fa3ed27ac5 (patch)
treedf9d7fbd90ba1d32c99c90cf0f4c881ced36f926 /c/src/lib/libbsp/sparc/leon2/timer/timer.c
parent2008-08-31 Joel Sherrill <joel.sherrill@oarcorp.com> (diff)
downloadrtems-e511e126268d719ec86f6633b17c47fa3ed27ac5.tar.bz2
2008-08-31 Joel Sherrill <joel.sherrill@oarcorp.com>
* timer/timer.c: Eliminate empty function from every benchmark timer driver. Fix spelling.
Diffstat (limited to 'c/src/lib/libbsp/sparc/leon2/timer/timer.c')
-rw-r--r--c/src/lib/libbsp/sparc/leon2/timer/timer.c23
1 files changed, 9 insertions, 14 deletions
diff --git a/c/src/lib/libbsp/sparc/leon2/timer/timer.c b/c/src/lib/libbsp/sparc/leon2/timer/timer.c
index f1120de9b8..d1b5ce4b08 100644
--- a/c/src/lib/libbsp/sparc/leon2/timer/timer.c
+++ b/c/src/lib/libbsp/sparc/leon2/timer/timer.c
@@ -22,24 +22,24 @@
#include <bsp.h>
-rtems_boolean benchmark_timerfind_average_overhead;
+rtems_boolean benchmark_timer_find_average_overhead;
-rtems_boolean benchmark_timeris_initialized = FALSE;
+rtems_boolean benchmark_timer_is_initialized = FALSE;
-void benchmark_timerinitialize(void)
+void benchmark_timer_initialize(void)
{
/*
* Timer runs long and accurate enough not to require an interrupt.
*/
- if ( benchmark_timeris_initialized == FALSE ) {
+ if ( benchmark_timer_is_initialized == FALSE ) {
/* approximately 1 us per countdown */
LEON_REG.Timer_Counter_2 = 0xffffff;
LEON_REG.Timer_Reload_2 = 0xffffff;
} else {
- benchmark_timeris_initialized = TRUE;
+ benchmark_timer_is_initialized = TRUE;
}
LEON_REG.Timer_Control_2 = (
@@ -53,7 +53,7 @@ void benchmark_timerinitialize(void)
/* to start/stop the timer. */
#define LEAST_VALID 2 /* Don't trust a value lower than this */
-int benchmark_timerread(void)
+int benchmark_timer_read(void)
{
uint32_t total;
@@ -61,7 +61,7 @@ int benchmark_timerread(void)
total = 0xffffff - total;
- if ( benchmark_timerfind_average_overhead == 1 )
+ if ( benchmark_timer_find_average_overhead == 1 )
return total; /* in one microsecond units */
if ( total < LEAST_VALID )
@@ -70,14 +70,9 @@ int benchmark_timerread(void)
return total - AVG_OVERHEAD;
}
-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;
}