summaryrefslogtreecommitdiff
path: root/src/cpu/x86
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2010-09-07 07:53:26 +0000
committerPatrick Georgi <patrick.georgi@coresystems.de>2010-09-07 07:53:26 +0000
commit3e4daf1345a6fbe55871076c71e3c212a3cf3565 (patch)
treefabce52bd404b562a4af747a5ab6c7b7872fa674 /src/cpu/x86
parent34697d67c18780bf765ac9f66dcb1f14c7ef74c8 (diff)
downloadcoreboot-3e4daf1345a6fbe55871076c71e3c212a3cf3565.tar.xz
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
Diffstat (limited to 'src/cpu/x86')
-rw-r--r--src/cpu/x86/tsc/delay_tsc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cpu/x86/tsc/delay_tsc.c b/src/cpu/x86/tsc/delay_tsc.c
index 27c89e3a94..1127867638 100644
--- a/src/cpu/x86/tsc/delay_tsc.c
+++ b/src/cpu/x86/tsc/delay_tsc.c
@@ -18,8 +18,8 @@ static unsigned long clocks_per_usec;
* device.
*/
-#define CALIBRATE_INTERVAL ((20*CLOCK_TICK_RATE)/1000) /* 20ms */
-#define CALIBRATE_DIVISOR (20*1000) /* 20ms / 20000 == 1usec */
+#define CALIBRATE_INTERVAL ((2*CLOCK_TICK_RATE)/1000) /* 2ms */
+#define CALIBRATE_DIVISOR (2*1000) /* 2ms / 2000 == 1usec */
static unsigned long long calibrate_tsc(void)
{