[rtems commit] libcpu/powerpc/mpc6xx/timer/timer.c: Fix warnings
Joel Sherrill
joel at rtems.org
Mon Oct 13 15:23:38 UTC 2014
Module: rtems
Branch: master
Commit: 714336dde0b61ac1997d9e6d923f77a8354c5958
Changeset: http://git.rtems.org/rtems/commit/?id=714336dde0b61ac1997d9e6d923f77a8354c5958
Author: Joel Sherrill <joel.sherrill at oarcorp.com>
Date: Mon Oct 13 10:30:30 2014 -0500
libcpu/powerpc/mpc6xx/timer/timer.c: Fix warnings
---
c/src/lib/libcpu/powerpc/mpc6xx/timer/timer.c | 15 +++------------
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 ee6e9a9..2b3395c 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;
More information about the vc
mailing list