A fix for the old outb 0x80 based calibrate_tsc

return the computed value, not an uninitialized variable!
This commit is contained in:
Steven James 2002-10-26 00:49:25 +00:00
commit 08bee63c8b

View file

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