From 714336dde0b61ac1997d9e6d923f77a8354c5958 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Mon, 13 Oct 2014 10:30:30 -0500 Subject: libcpu/powerpc/mpc6xx/timer/timer.c: Fix warnings --- c/src/lib/libcpu/powerpc/mpc6xx/timer/timer.c | 15 +++------------ 1 file 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; -- cgit v1.2.3