summaryrefslogtreecommitdiffstats
path: root/c
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2006-11-17 22:46:31 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2006-11-17 22:46:31 +0000
commit3ca2768f1fca8c28d5c10e4aec9eeedb2765e7d3 (patch)
tree920e4a6ba8d4585d9ce513f48235588a3a189ffc /c
parent2006-11-17 Joel Sherrill <joel@OARcorp.com> (diff)
downloadrtems-3ca2768f1fca8c28d5c10e4aec9eeedb2765e7d3.tar.bz2
2006-11-17 Joel Sherrill <joel@OARcorp.com>
* timer/timer.c: Update timer overhead for start/stop.
Diffstat (limited to 'c')
-rw-r--r--c/src/lib/libbsp/sparc/erc32/ChangeLog4
-rw-r--r--c/src/lib/libbsp/sparc/erc32/timer/timer.c10
2 files changed, 12 insertions, 2 deletions
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 <joel@OARcorp.com>
+
+ * timer/timer.c: Update timer overhead for start/stop.
+
2006-11-16 Joel Sherrill <joel@OARcorp.com>
* 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()
{