diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2006-11-17 22:46:31 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2006-11-17 22:46:31 +0000 |
commit | 3ca2768f1fca8c28d5c10e4aec9eeedb2765e7d3 (patch) | |
tree | 920e4a6ba8d4585d9ce513f48235588a3a189ffc /c/src/lib/libbsp/sparc/erc32/timer/timer.c | |
parent | 2006-11-17 Joel Sherrill <joel@OARcorp.com> (diff) | |
download | rtems-3ca2768f1fca8c28d5c10e4aec9eeedb2765e7d3.tar.bz2 |
2006-11-17 Joel Sherrill <joel@OARcorp.com>
* timer/timer.c: Update timer overhead for start/stop.
Diffstat (limited to '')
-rw-r--r-- | c/src/lib/libbsp/sparc/erc32/timer/timer.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/c/src/lib/libbsp/sparc/erc32/timer/timer.c b/c/src/lib/libbsp/sparc/erc32/timer/timer.c index f40be89f3b..33445831f0 100644 --- a/c/src/lib/libbsp/sparc/erc32/timer/timer.c +++ b/c/src/lib/libbsp/sparc/erc32/timer/timer.c @@ -53,9 +53,15 @@ void Timer_initialize() } -#define AVG_OVERHEAD 3 /* It typically takes 3.0 microseconds */ +#if ENABLE_SIS_QUIRKS +#define AVG_OVERHEAD 8 /* It typically takes 3.0 microseconds */ /* to start/stop the timer. */ -#define LEAST_VALID 2 /* Don't trust a value lower than this */ +#define LEAST_VALID 9 /* Don't trust a value lower than this */ +#else +#define AVG_OVERHEAD 12 /* It typically takes 3.0 microseconds */ + /* to start/stop the timer. */ +#define LEAST_VALID 13 /* Don't trust a value lower than this */ +#endif int Read_timer() { |