diff options
Diffstat (limited to 'sys/amd64')
-rw-r--r-- | sys/amd64/amd64/tsc.c | 6 | ||||
-rw-r--r-- | sys/amd64/isa/clock.c | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/sys/amd64/amd64/tsc.c b/sys/amd64/amd64/tsc.c index aafa821..b34567b 100644 --- a/sys/amd64/amd64/tsc.c +++ b/sys/amd64/amd64/tsc.c @@ -49,7 +49,7 @@ */ #include "opt_clock.h" -#include "apm.h" +#include "opt_apm.h" #include <sys/param.h> #include <sys/systm.h> @@ -796,7 +796,7 @@ startrtclock() * Curse Intel for leaving the counter out of the I/O APIC. */ -#if NAPM > 0 +#ifdef DEV_APM /* * We can not use the TSC if we support APM. Precise timekeeping * on an APM'ed machine is at best a fools pursuit, since @@ -813,7 +813,7 @@ startrtclock() if (disabled == 0) return; } -#endif /* NAPM > 0 */ +#endif /* DEV_APM */ if (tsc_present && tsc_freq != 0 && !tsc_is_broken) { tsc_timecounter.tc_frequency = tsc_freq; diff --git a/sys/amd64/isa/clock.c b/sys/amd64/isa/clock.c index aafa821..b34567b 100644 --- a/sys/amd64/isa/clock.c +++ b/sys/amd64/isa/clock.c @@ -49,7 +49,7 @@ */ #include "opt_clock.h" -#include "apm.h" +#include "opt_apm.h" #include <sys/param.h> #include <sys/systm.h> @@ -796,7 +796,7 @@ startrtclock() * Curse Intel for leaving the counter out of the I/O APIC. */ -#if NAPM > 0 +#ifdef DEV_APM /* * We can not use the TSC if we support APM. Precise timekeeping * on an APM'ed machine is at best a fools pursuit, since @@ -813,7 +813,7 @@ startrtclock() if (disabled == 0) return; } -#endif /* NAPM > 0 */ +#endif /* DEV_APM */ if (tsc_present && tsc_freq != 0 && !tsc_is_broken) { tsc_timecounter.tc_frequency = tsc_freq; |