From 3ca2768f1fca8c28d5c10e4aec9eeedb2765e7d3 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Fri, 17 Nov 2006 22:46:31 +0000 Subject: 2006-11-17 Joel Sherrill * timer/timer.c: Update timer overhead for start/stop. --- c/src/lib/libbsp/sparc/erc32/ChangeLog | 4 ++++ c/src/lib/libbsp/sparc/erc32/timer/timer.c | 10 ++++++++-- 2 files changed, 12 insertions(+), 2 deletions(-) (limited to 'c') diff --git a/c/src/lib/libbsp/sparc/erc32/ChangeLog b/c/src/lib/libbsp/sparc/erc32/ChangeLog index 98933af84f..24725099a9 100644 --- a/c/src/lib/libbsp/sparc/erc32/ChangeLog +++ b/c/src/lib/libbsp/sparc/erc32/ChangeLog @@ -1,3 +1,7 @@ +2006-11-17 Joel Sherrill + + * timer/timer.c: Update timer overhead for start/stop. + 2006-11-16 Joel Sherrill * clock/ckinit.c, console/console.c: Use common clock driver template 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() { -- cgit v1.2.3