summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libbsp/m68k/mvme162/timer
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2008-08-31 18:18:17 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2008-08-31 18:18:17 +0000
commit25c62b02bc8fc9e66c1735e562e91acaa94abbe3 (patch)
tree1310e9509ef176a712ba98e4b2664da7d9cc4d63 /c/src/lib/libbsp/m68k/mvme162/timer
parent2008-08-31 Joel Sherrill <joel.sherrill@oarcorp.com> (diff)
downloadrtems-25c62b02bc8fc9e66c1735e562e91acaa94abbe3.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/m68k/mvme162/timer')
-rw-r--r--c/src/lib/libbsp/m68k/mvme162/timer/timer.c17
1 files changed, 6 insertions, 11 deletions
diff --git a/c/src/lib/libbsp/m68k/mvme162/timer/timer.c b/c/src/lib/libbsp/m68k/mvme162/timer/timer.c
index 4b4b666088..0a83d7c1d4 100644
--- a/c/src/lib/libbsp/m68k/mvme162/timer/timer.c
+++ b/c/src/lib/libbsp/m68k/mvme162/timer/timer.c
@@ -38,11 +38,11 @@
#define TIMER_INT_LEVEL 6
uint32_t Ttimer_val;
-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)
{
(void) set_vector( timerisr, VBR0 * 0x10 + 0x8, 0 );
@@ -63,13 +63,13 @@ void benchmark_timerinitialize(void)
/* (3 countdowns) to start/stop the timer. */
#define LEAST_VALID 10U /* Don't trust a value lower than this */
-int benchmark_timerread(void)
+int benchmark_timer_read(void)
{
uint32_t total;
total = (Ttimer_val * TICK_INTERVAL) + lcsr->timer_cnt_1;
- if ( benchmark_timerfind_average_overhead == 1 )
+ if ( benchmark_timer_find_average_overhead == 1 )
return total; /* in one-half microsecond units */
if ( total < LEAST_VALID )
@@ -78,14 +78,9 @@ int benchmark_timerread(void)
return (total-AVG_OVERHEAD) >> 1;
}
-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;
}