diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2008-08-31 17:03:54 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2008-08-31 17:03:54 +0000 |
commit | 6427f1a24f17c44f233d9b7fe84ac74b099ca85e (patch) | |
tree | 37fda00b2b5b2a7d945474de264481c6b64dfcb4 /c/src/lib/libcpu/powerpc/mpc5xx/timer/timer.c | |
parent | 2008-08-31 Joel Sherrill <joel.sherrill@oarcorp.com> (diff) | |
download | rtems-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 'c/src/lib/libcpu/powerpc/mpc5xx/timer/timer.c')
-rw-r--r-- | c/src/lib/libcpu/powerpc/mpc5xx/timer/timer.c | 17 |
1 files changed, 6 insertions, 11 deletions
diff --git a/c/src/lib/libcpu/powerpc/mpc5xx/timer/timer.c b/c/src/lib/libcpu/powerpc/mpc5xx/timer/timer.c index c4a0eb45b2..f5b77124df 100644 --- a/c/src/lib/libcpu/powerpc/mpc5xx/timer/timer.c +++ b/c/src/lib/libcpu/powerpc/mpc5xx/timer/timer.c @@ -52,7 +52,7 @@ #include <mpc5xx.h> static volatile uint32_t Timer_starting; -static rtems_boolean Timer_driver_Find_average_overhead; +static rtems_boolean benchmark_timer_find_average_overhead; /* * This is so small that this code will be reproduced where needed. @@ -66,7 +66,7 @@ static inline uint32_t get_itimer(void) return ret; } -void Timer_initialize(void) +void benchmark_timer_initialize(void) { /* set interrupt level and enable timebase. This should never */ /* generate an interrupt however. */ @@ -79,7 +79,7 @@ void Timer_initialize(void) Timer_starting = get_itimer(); } -int Read_timer(void) +int benchmark_timer_read(void) { uint32_t clicks; uint32_t total; @@ -90,7 +90,7 @@ int Read_timer(void) total = clicks - Timer_starting; - if ( Timer_driver_Find_average_overhead == 1 ) + if ( benchmark_timer_find_average_overhead == 1 ) return total; /* in XXX microsecond units */ else { @@ -101,12 +101,7 @@ int Read_timer(void) } } -rtems_status_code Empty_function(void) +void benchmark_timer_disable_subtracting_average_overhead(rtems_boolean find_flag) { - return RTEMS_SUCCESSFUL; -} - -void Set_find_average_overhead(rtems_boolean find_flag) -{ - Timer_driver_Find_average_overhead = find_flag; + benchmark_timer_find_average_overhead = find_flag; } |