2006-11-17 Joel Sherrill <joel@OARcorp.com>

* timer/timer.c: Update timer overhead for start/stop.
This commit is contained in:
Joel Sherrill
2006-11-17 22:45:50 +00:00
parent 88b86cb55a
commit f791c6c2c1
2 changed files with 12 additions and 2 deletions

View File

@@ -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

View File

@@ -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()
{