summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libcpu/powerpc/ppc403/timer/timer.c
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2008-08-31 17:03:54 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2008-08-31 17:03:54 +0000
commit6427f1a24f17c44f233d9b7fe84ac74b099ca85e (patch)
tree37fda00b2b5b2a7d945474de264481c6b64dfcb4 /c/src/lib/libcpu/powerpc/ppc403/timer/timer.c
parent2008-08-31 Joel Sherrill <joel.sherrill@oarcorp.com> (diff)
downloadrtems-6427f1a24f17c44f233d9b7fe84ac74b099ca85e.tar.bz2
2008-08-31 Joel Sherrill <joel.sherrill@oarcorp.com>
* mpc505/timer/timer.c, mpc5xx/timer/timer.c, mpc6xx/timer/timer.c, mpc8260/timer/timer.c, mpc8xx/timer/timer.c, ppc403/timer/timer.c: Rename timer driver methods to follow RTEMS programming conventions.
Diffstat (limited to '')
-rw-r--r--c/src/lib/libcpu/powerpc/ppc403/timer/timer.c11
1 files changed, 3 insertions, 8 deletions
diff --git a/c/src/lib/libcpu/powerpc/ppc403/timer/timer.c b/c/src/lib/libcpu/powerpc/ppc403/timer/timer.c
index 978cda8efb..1ac158ea5b 100644
--- a/c/src/lib/libcpu/powerpc/ppc403/timer/timer.c
+++ b/c/src/lib/libcpu/powerpc/ppc403/timer/timer.c
@@ -47,13 +47,13 @@ extern uint32_t bsp_timer_average_overhead;
static volatile uint32_t startedAt;
static rtems_boolean subtractOverhead;
-void Timer_initialize(void)
+void benchmark_timer_initialize(void)
{
/* We are going to rely on clock.c to sort out where the clock comes from */
startedAt = ppc_time_base();
}
-int Read_timer(void)
+int benchmark_timer_read(void)
{
uint32_t clicks, total;
@@ -67,12 +67,7 @@ int Read_timer(void)
return (total - bsp_timer_average_overhead);
}
-rtems_status_code Empty_function( void )
-{
- return RTEMS_SUCCESSFUL;
-}
-
-void Set_find_average_overhead( rtems_boolean find_flag)
+void benchmark_timer_disable_subtracting_average_overhead( rtems_boolean find_flag)
{
subtractOverhead = find_flag;
}