From d085040aef952f77797a4852e1e618eee1ede644 Mon Sep 17 00:00:00 2001 From: Ralf Corsepius Date: Wed, 9 Feb 2011 08:38:15 +0000 Subject: =?UTF-8?q?2011-02-09=09Ralf=20Cors=C3=A9pius=20?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * timer/timer.c: Include . Fix benchmark_timer_read() definition. --- c/src/lib/libbsp/powerpc/tqm8xx/ChangeLog | 5 +++++ c/src/lib/libbsp/powerpc/tqm8xx/timer/timer.c | 5 +++-- 2 files changed, 8 insertions(+), 2 deletions(-) (limited to 'c/src/lib/libbsp/powerpc/tqm8xx') diff --git a/c/src/lib/libbsp/powerpc/tqm8xx/ChangeLog b/c/src/lib/libbsp/powerpc/tqm8xx/ChangeLog index 0c1ab4d841..751010adcb 100644 --- a/c/src/lib/libbsp/powerpc/tqm8xx/ChangeLog +++ b/c/src/lib/libbsp/powerpc/tqm8xx/ChangeLog @@ -1,3 +1,8 @@ +2011-02-09 Ralf Corsépius + + * timer/timer.c: Include . + Fix benchmark_timer_read() definition. + 2011-02-02 Ralf Corsépius * configure.ac: Require autoconf-2.68, automake-1.11.1. diff --git a/c/src/lib/libbsp/powerpc/tqm8xx/timer/timer.c b/c/src/lib/libbsp/powerpc/tqm8xx/timer/timer.c index b38feec17f..21cd564b7f 100644 --- a/c/src/lib/libbsp/powerpc/tqm8xx/timer/timer.c +++ b/c/src/lib/libbsp/powerpc/tqm8xx/timer/timer.c @@ -50,6 +50,7 @@ #include #include +#include #include bool benchmark_timer_find_average_overhead; @@ -86,9 +87,9 @@ benchmark_timer_initialize (void) /* * Return timer value in microsecond units */ -int benchmark_timer_read(void) +uint32_t benchmark_timer_read(void) { - int retval; + uint32_t retval; retval = *(uint32_t*)&m8xx.tcn1; retval = retval * 1000000LL / BSP_bus_frequency; return retval; -- cgit v1.2.3