summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@oarcorp.com>2014-10-13 10:30:30 -0500
committerJoel Sherrill <joel.sherrill@oarcorp.com>2014-10-13 10:30:30 -0500
commit714336dde0b61ac1997d9e6d923f77a8354c5958 (patch)
tree0d4aa1162bb0bb89ac2c840bb1cf470f0502c80e
parentlibbsp/shared/vmeUniverse: Fix warnings (diff)
downloadrtems-714336dde0b61ac1997d9e6d923f77a8354c5958.tar.bz2
libcpu/powerpc/mpc6xx/timer/timer.c: Fix warnings
-rw-r--r--c/src/lib/libcpu/powerpc/mpc6xx/timer/timer.c15
1 files changed, 3 insertions, 12 deletions
diff --git a/c/src/lib/libcpu/powerpc/mpc6xx/timer/timer.c b/c/src/lib/libcpu/powerpc/mpc6xx/timer/timer.c
index ee6e9a9659..2b3395cd09 100644
--- a/c/src/lib/libcpu/powerpc/mpc6xx/timer/timer.c
+++ b/c/src/lib/libcpu/powerpc/mpc6xx/timer/timer.c
@@ -2,11 +2,11 @@
* @file
* @brief
*
- * This file implements a benchmark timer using the PPC Timebase
+ * This file implements a benchmark timer using the PPC Timebase Register.
*/
/*
- * COPYRIGHT (c) 1989-2000.
+ * COPYRIGHT (c) 1989-2014.
* On-Line Applications Research Corporation (OAR).
*
* The license and distribution terms for this file may in
@@ -30,8 +30,7 @@ unsigned clicks_overhead = 0;
/*
* Timer Get overhead
*/
-
-int Timer_get_clicks_overhead(void)
+static int Timer_get_clicks_overhead(void)
{
uint64_t clicks;
@@ -80,14 +79,6 @@ benchmark_timer_t benchmark_timer_read(void)
return (int) BSP_Convert_decrementer(total - clicks_overhead);
}
-unsigned long long Read_long_timer(void)
-{
- uint64_t total64;
-
- total64 = PPC_Get_timebase_register();
- return BSP_Convert_decrementer(total64 - clicks_overhead);
-}
-
void benchmark_timer_disable_subtracting_average_overhead(bool find_flag)
{
benchmark_timer_find_average_overhead = find_flag;