summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorkato <kato@FreeBSD.org>2000-03-23 08:55:45 +0000
committerkato <kato@FreeBSD.org>2000-03-23 08:55:45 +0000
commit16d518267b5d1c92e3740ebb6746326029dbac6a (patch)
tree8da0a2468baa1fa05983c47498da8f7ca5cbc536 /sys
parentbea6df776ed9957335f9ba87f5ec32ef0d22674e (diff)
downloadFreeBSD-src-16d518267b5d1c92e3740ebb6746326029dbac6a.zip
FreeBSD-src-16d518267b5d1c92e3740ebb6746326029dbac6a.tar.gz
Merged from sys/i386/isa/clock.c and sys/isa/sio.c revisions 1.150 and
1.292, respectively.
Diffstat (limited to 'sys')
-rw-r--r--sys/pc98/cbus/clock.c13
-rw-r--r--sys/pc98/cbus/pcrtc.c13
-rw-r--r--sys/pc98/cbus/sio.c1
-rw-r--r--sys/pc98/pc98/clock.c13
-rw-r--r--sys/pc98/pc98/sio.c1
5 files changed, 23 insertions, 18 deletions
diff --git a/sys/pc98/cbus/clock.c b/sys/pc98/cbus/clock.c
index bd29e52..820421b 100644
--- a/sys/pc98/cbus/clock.c
+++ b/sys/pc98/cbus/clock.c
@@ -58,6 +58,7 @@
#include <sys/param.h>
#include <sys/systm.h>
#include <sys/time.h>
+#include <sys/timetc.h>
#include <sys/kernel.h>
#ifndef SMP
#include <sys/lock.h>
@@ -963,7 +964,7 @@ startrtclock()
set_timer_freq(timer_freq, hz);
i8254_timecounter.tc_frequency = timer_freq;
- init_timecounter(&i8254_timecounter);
+ tc_init(&i8254_timecounter);
#ifndef CLK_USE_TSC_CALIBRATION
if (tsc_freq != 0) {
@@ -1013,7 +1014,7 @@ startrtclock()
if (tsc_present && tsc_freq != 0 && !tsc_is_broken) {
tsc_timecounter.tc_frequency = tsc_freq;
- init_timecounter(&tsc_timecounter);
+ tc_init(&tsc_timecounter);
}
#endif /* !defined(SMP) */
@@ -1101,7 +1102,7 @@ inittodr(time_t base)
s = splclock();
ts.tv_sec = base;
ts.tv_nsec = 0;
- set_timecounter(&ts);
+ tc_setclock(&ts);
splx(s);
}
@@ -1183,7 +1184,7 @@ inittodr(time_t base)
/* badly off, adjust it */
ts.tv_sec = sec;
ts.tv_nsec = 0;
- set_timecounter(&ts);
+ tc_setclock(&ts);
}
splx(s);
return;
@@ -1499,7 +1500,7 @@ sysctl_machdep_i8254_freq SYSCTL_HANDLER_ARGS
return (EBUSY); /* too much trouble to handle */
set_timer_freq(freq, hz);
i8254_timecounter.tc_frequency = freq;
- update_timecounter(&i8254_timecounter);
+ tc_update(&i8254_timecounter);
}
return (error);
}
@@ -1520,7 +1521,7 @@ sysctl_machdep_tsc_freq SYSCTL_HANDLER_ARGS
if (error == 0 && req->newptr != NULL) {
tsc_freq = freq;
tsc_timecounter.tc_frequency = tsc_freq;
- update_timecounter(&tsc_timecounter);
+ tc_update(&tsc_timecounter);
}
return (error);
}
diff --git a/sys/pc98/cbus/pcrtc.c b/sys/pc98/cbus/pcrtc.c
index bd29e52..820421b 100644
--- a/sys/pc98/cbus/pcrtc.c
+++ b/sys/pc98/cbus/pcrtc.c
@@ -58,6 +58,7 @@
#include <sys/param.h>
#include <sys/systm.h>
#include <sys/time.h>
+#include <sys/timetc.h>
#include <sys/kernel.h>
#ifndef SMP
#include <sys/lock.h>
@@ -963,7 +964,7 @@ startrtclock()
set_timer_freq(timer_freq, hz);
i8254_timecounter.tc_frequency = timer_freq;
- init_timecounter(&i8254_timecounter);
+ tc_init(&i8254_timecounter);
#ifndef CLK_USE_TSC_CALIBRATION
if (tsc_freq != 0) {
@@ -1013,7 +1014,7 @@ startrtclock()
if (tsc_present && tsc_freq != 0 && !tsc_is_broken) {
tsc_timecounter.tc_frequency = tsc_freq;
- init_timecounter(&tsc_timecounter);
+ tc_init(&tsc_timecounter);
}
#endif /* !defined(SMP) */
@@ -1101,7 +1102,7 @@ inittodr(time_t base)
s = splclock();
ts.tv_sec = base;
ts.tv_nsec = 0;
- set_timecounter(&ts);
+ tc_setclock(&ts);
splx(s);
}
@@ -1183,7 +1184,7 @@ inittodr(time_t base)
/* badly off, adjust it */
ts.tv_sec = sec;
ts.tv_nsec = 0;
- set_timecounter(&ts);
+ tc_setclock(&ts);
}
splx(s);
return;
@@ -1499,7 +1500,7 @@ sysctl_machdep_i8254_freq SYSCTL_HANDLER_ARGS
return (EBUSY); /* too much trouble to handle */
set_timer_freq(freq, hz);
i8254_timecounter.tc_frequency = freq;
- update_timecounter(&i8254_timecounter);
+ tc_update(&i8254_timecounter);
}
return (error);
}
@@ -1520,7 +1521,7 @@ sysctl_machdep_tsc_freq SYSCTL_HANDLER_ARGS
if (error == 0 && req->newptr != NULL) {
tsc_freq = freq;
tsc_timecounter.tc_frequency = tsc_freq;
- update_timecounter(&tsc_timecounter);
+ tc_update(&tsc_timecounter);
}
return (error);
}
diff --git a/sys/pc98/cbus/sio.c b/sys/pc98/cbus/sio.c
index 58380f1..227f64d 100644
--- a/sys/pc98/cbus/sio.c
+++ b/sys/pc98/cbus/sio.c
@@ -155,6 +155,7 @@
#include <sys/bus.h>
#include <machine/bus.h>
#include <sys/rman.h>
+#include <sys/timetc.h>
#include <sys/timepps.h>
#ifdef PC98
diff --git a/sys/pc98/pc98/clock.c b/sys/pc98/pc98/clock.c
index bd29e52..820421b 100644
--- a/sys/pc98/pc98/clock.c
+++ b/sys/pc98/pc98/clock.c
@@ -58,6 +58,7 @@
#include <sys/param.h>
#include <sys/systm.h>
#include <sys/time.h>
+#include <sys/timetc.h>
#include <sys/kernel.h>
#ifndef SMP
#include <sys/lock.h>
@@ -963,7 +964,7 @@ startrtclock()
set_timer_freq(timer_freq, hz);
i8254_timecounter.tc_frequency = timer_freq;
- init_timecounter(&i8254_timecounter);
+ tc_init(&i8254_timecounter);
#ifndef CLK_USE_TSC_CALIBRATION
if (tsc_freq != 0) {
@@ -1013,7 +1014,7 @@ startrtclock()
if (tsc_present && tsc_freq != 0 && !tsc_is_broken) {
tsc_timecounter.tc_frequency = tsc_freq;
- init_timecounter(&tsc_timecounter);
+ tc_init(&tsc_timecounter);
}
#endif /* !defined(SMP) */
@@ -1101,7 +1102,7 @@ inittodr(time_t base)
s = splclock();
ts.tv_sec = base;
ts.tv_nsec = 0;
- set_timecounter(&ts);
+ tc_setclock(&ts);
splx(s);
}
@@ -1183,7 +1184,7 @@ inittodr(time_t base)
/* badly off, adjust it */
ts.tv_sec = sec;
ts.tv_nsec = 0;
- set_timecounter(&ts);
+ tc_setclock(&ts);
}
splx(s);
return;
@@ -1499,7 +1500,7 @@ sysctl_machdep_i8254_freq SYSCTL_HANDLER_ARGS
return (EBUSY); /* too much trouble to handle */
set_timer_freq(freq, hz);
i8254_timecounter.tc_frequency = freq;
- update_timecounter(&i8254_timecounter);
+ tc_update(&i8254_timecounter);
}
return (error);
}
@@ -1520,7 +1521,7 @@ sysctl_machdep_tsc_freq SYSCTL_HANDLER_ARGS
if (error == 0 && req->newptr != NULL) {
tsc_freq = freq;
tsc_timecounter.tc_frequency = tsc_freq;
- update_timecounter(&tsc_timecounter);
+ tc_update(&tsc_timecounter);
}
return (error);
}
diff --git a/sys/pc98/pc98/sio.c b/sys/pc98/pc98/sio.c
index 58380f1..227f64d 100644
--- a/sys/pc98/pc98/sio.c
+++ b/sys/pc98/pc98/sio.c
@@ -155,6 +155,7 @@
#include <sys/bus.h>
#include <machine/bus.h>
#include <sys/rman.h>
+#include <sys/timetc.h>
#include <sys/timepps.h>
#ifdef PC98
OpenPOWER on IntegriCloud