From 08bee63c8b6f01d822bb0e36c70f619b60b3bbae Mon Sep 17 00:00:00 2001 From: Steven James Date: Sat, 26 Oct 2002 00:49:25 +0000 Subject: [PATCH] A fix for the old outb 0x80 based calibrate_tsc return the computed value, not an uninitialized variable! --- src/cpu/p5/delay_tsc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cpu/p5/delay_tsc.c b/src/cpu/p5/delay_tsc.c index 062eb30e99..a9091f62c2 100644 --- a/src/cpu/p5/delay_tsc.c +++ b/src/cpu/p5/delay_tsc.c @@ -98,7 +98,7 @@ bad_ctc: */ static unsigned long long calibrate_tsc(void) { - unsigned long long retval, start, end, delta; + unsigned long long start, end, delta; unsigned long allones = (unsigned long) -1, result; unsigned long startlow, starthigh; unsigned long endlow, endhigh; @@ -130,7 +130,7 @@ static unsigned long long calibrate_tsc(void) printk_spew("32-bit delta %d\n", (unsigned long) delta); printk_spew(__FUNCTION__ " 32-bit result is %d\n", result); - return retval; + return delta; }