2ms is enough time to accurately obtain the clock rate.

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Acked-by: Patrick Georgi <patrick.georgi@coresystems.de>


git-svn-id: svn://svn.coreboot.org/coreboot/trunk@5780 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
This commit is contained in:
Kevin O'Connor 2010-09-07 07:53:26 +00:00 committed by Patrick Georgi
parent 34697d67c1
commit 3e4daf1345
1 changed files with 2 additions and 2 deletions

View File

@ -18,8 +18,8 @@ static unsigned long clocks_per_usec;
* device. * device.
*/ */
#define CALIBRATE_INTERVAL ((20*CLOCK_TICK_RATE)/1000) /* 20ms */ #define CALIBRATE_INTERVAL ((2*CLOCK_TICK_RATE)/1000) /* 2ms */
#define CALIBRATE_DIVISOR (20*1000) /* 20ms / 20000 == 1usec */ #define CALIBRATE_DIVISOR (2*1000) /* 2ms / 2000 == 1usec */
static unsigned long long calibrate_tsc(void) static unsigned long long calibrate_tsc(void)
{ {