4.115
Last change
on this file since 6cd2074 was
8fbe2e6,
checked in by Joel Sherrill <joel.sherrill@…>, on 09/04/14 at 13:59:49
|
Use correct prototype of benchmark_timer_read()
This change starts with removing the effectively empty file
timerdrv.h. The prototypes for benchmark_timer_XXX() were in
btimer.h which was not universally used. Thus every use of
timerdrv.h had to be changed to btimer.h. Then the prototypes
for benchmark_timer_read() had to be adjusted to return
benchmark_timer_t rather than int or uint32_t.
I took this opportunity to also correct the file headers to
separate the copyright from the file description comments which
is needed to ensure the copyright isn't propagated into Doxygen
output.
|
-
Property mode set to
100644
|
File size:
593 bytes
|
Line | |
---|
1 | /* |
---|
2 | * This file implements a stub benchmark timer that is sufficient to |
---|
3 | * satisfy linking the RTEMS Benchmarks. |
---|
4 | * |
---|
5 | * COPYRIGHT (c) 1989-2001. |
---|
6 | * On-Line Applications Research Corporation (OAR). |
---|
7 | */ |
---|
8 | |
---|
9 | #include <bsp.h> |
---|
10 | #include <rtems/btimer.h> |
---|
11 | |
---|
12 | bool benchmark_timer_find_average_overhead; |
---|
13 | |
---|
14 | void benchmark_timer_initialize(void) |
---|
15 | { |
---|
16 | } |
---|
17 | |
---|
18 | benchmark_timer_t benchmark_timer_read(void) |
---|
19 | { |
---|
20 | if (benchmark_timer_find_average_overhead) |
---|
21 | return 1; |
---|
22 | return 0; |
---|
23 | } |
---|
24 | |
---|
25 | void benchmark_timer_disable_subtracting_average_overhead( |
---|
26 | bool find_flag |
---|
27 | ) |
---|
28 | { |
---|
29 | benchmark_timer_find_average_overhead = find_flag; |
---|
30 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.