From cd3402fa66d3c890282810a2604b6a57f627fc1b Mon Sep 17 00:00:00 2001 From: Peter Wemm Date: Tue, 23 Sep 2003 00:18:45 +0000 Subject: [PATCH] Sync with i386 version. The quality initialization was missing and some other junk. --- sys/amd64/amd64/tsc.c | 6 ++---- sys/amd64/include/cpu.h | 1 - 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/sys/amd64/amd64/tsc.c b/sys/amd64/amd64/tsc.c index 699042fe1d1..274cd73f9f0 100644 --- a/sys/amd64/amd64/tsc.c +++ b/sys/amd64/amd64/tsc.c @@ -43,7 +43,6 @@ __FBSDID("$FreeBSD$"); uint64_t tsc_freq; int tsc_is_broken; -u_int tsc_present = 1; #ifdef SMP static int smp_tsc; @@ -59,7 +58,8 @@ static struct timecounter tsc_timecounter = { 0, /* no poll_pps */ ~0u, /* counter_mask */ 0, /* frequency */ - "TSC" /* name */ + "TSC", /* name */ + 800, /* quality (adjusted in code) */ }; void @@ -89,8 +89,6 @@ init_TSC_tc(void) tsc_timecounter.tc_frequency = tsc_freq; tc_init(&tsc_timecounter); } - - return; } static int diff --git a/sys/amd64/include/cpu.h b/sys/amd64/include/cpu.h index 50ede9d19d2..a96ab5652b2 100644 --- a/sys/amd64/include/cpu.h +++ b/sys/amd64/include/cpu.h @@ -78,7 +78,6 @@ #ifdef _KERNEL extern char btext[]; extern char etext[]; -extern u_int tsc_present; void cpu_halt(void); void cpu_reset(void);