summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libbsp/powerpc/tqm8xx/timer/timer.c
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2008-09-30 16:27:16 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2008-09-30 16:27:16 +0000
commit290da88f5a3e1908c2d9ab234199650308591a0e (patch)
tree3b89da25558ceeeba429da8ddaf6df89ea043ec0 /c/src/lib/libbsp/powerpc/tqm8xx/timer/timer.c
parent2008-09-30 Joel Sherrill <joel.sherrill@oarcorp.com> (diff)
downloadrtems-290da88f5a3e1908c2d9ab234199650308591a0e.tar.bz2
2008-09-30 Joel Sherrill <joel.sherrill@oarcorp.com>
* timer/timer.c: Eliminate uses of old benchmark timer names.
Diffstat (limited to 'c/src/lib/libbsp/powerpc/tqm8xx/timer/timer.c')
-rw-r--r--c/src/lib/libbsp/powerpc/tqm8xx/timer/timer.c25
1 files changed, 9 insertions, 16 deletions
diff --git a/c/src/lib/libbsp/powerpc/tqm8xx/timer/timer.c b/c/src/lib/libbsp/powerpc/tqm8xx/timer/timer.c
index d47daf30ec..276fff340c 100644
--- a/c/src/lib/libbsp/powerpc/tqm8xx/timer/timer.c
+++ b/c/src/lib/libbsp/powerpc/tqm8xx/timer/timer.c
@@ -21,7 +21,7 @@
| this file contains the console driver |
\*===============================================================*/
/*
- * Timer_init()
+ * benchmark_timer_initialize()
*
* Use TIMER 1 and TIMER 2 for Timing Test Suite
*
@@ -52,8 +52,10 @@
#include <bsp.h>
#include <mpc8xx.h>
+bool benchmark_timer_find_average_overhead;
+
void
-Timer_initialize (void)
+benchmark_timer_initialize (void)
{
/*
* Reset timers 1 and 2
@@ -84,8 +86,7 @@ Timer_initialize (void)
/*
* Return timer value in microsecond units
*/
-int
-Read_timer (void)
+int benchmark_timer_read(void)
{
int retval;
retval = *(uint32_t*)&m8xx.tcn1;
@@ -93,17 +94,9 @@ Read_timer (void)
return retval;
}
-/*
- * Empty function call used in loops to measure basic cost of looping
- * in Timing Test Suite.
- */
-rtems_status_code
-Empty_function (void)
-{
- return RTEMS_SUCCESSFUL;
-}
-
-void
-Set_find_average_overhead(bool find_flag)
+void benchmark_timer_disable_subtracting_average_overhead(
+ bool find_flag
+)
{
+ benchmark_timer_find_average_overhead = find_flag;
}