~kris/9p

9hist

828a71e075cae3d769770c031a6ba43c597f4a40 — David du Colombier 32 years ago 3a41daf
Plan 9 from Bell Labs 1994-07-19
1 files changed, 5 insertions(+), 2 deletions(-)

M pc/clock.c
M pc/clock.c => pc/clock.c +5 -2
@@ 96,7 96,7 @@ delay(int l)
void
printcpufreq(void)
{
	print("CPU is a %ud Hz %d\n", cpufreq, cputype);
	print("CPU is a %ud MHz %d\n", cpufreq, cputype);
}

void


@@ 150,7 150,7 @@ clockinit(void)
	 */
	switch(cputype = x86()){
	case 386:
		cycles = 30;
		cycles = 32;
		break;
	case 486:
		cycles = 22;


@@ 161,4 161,7 @@ clockinit(void)
	}
	cpufreq = loops*((cycles*Freq)/x);
	loopconst = (cpufreq/1000)/cycles;	/* AAM+LOOP's for 1 ms */

	/* convert to MHz */
	cpufreq = cpufreq/1000000;
}