diff options
author | mav <mav@FreeBSD.org> | 2010-06-12 13:10:03 +0000 |
---|---|---|
committer | mav <mav@FreeBSD.org> | 2010-06-12 13:10:03 +0000 |
commit | b0d57d4b56d4d65ca0ca32af08a2448072cb86f4 (patch) | |
tree | 2034b4d76011d12f892c6b86b8cf57fd4e687a47 | |
parent | d7eaa4520bf719a6d9026593ea53b856b279599c (diff) | |
download | FreeBSD-src-b0d57d4b56d4d65ca0ca32af08a2448072cb86f4.zip FreeBSD-src-b0d57d4b56d4d65ca0ca32af08a2448072cb86f4.tar.gz |
Check general TSC presence before doing more specific checks and printfs.
-rw-r--r-- | sys/i386/i386/tsc.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/i386/i386/tsc.c b/sys/i386/i386/tsc.c index 95f87f5..d0f7072 100644 --- a/sys/i386/i386/tsc.c +++ b/sys/i386/i386/tsc.c @@ -123,6 +123,10 @@ init_TSC(void) void init_TSC_tc(void) { + + if (!tsc_present) + return; + /* * We can not use the TSC if we support APM. Precise timekeeping * on an APM'ed machine is at best a fools pursuit, since @@ -152,7 +156,7 @@ init_TSC_tc(void) tsc_timecounter.tc_quality = -100; #endif - if (tsc_present && tsc_freq != 0 && !tsc_is_broken) { + if (tsc_freq != 0 && !tsc_is_broken) { tsc_timecounter.tc_frequency = tsc_freq; tc_init(&tsc_timecounter); } |