diff options
author | phk <phk@FreeBSD.org> | 1998-06-07 08:40:53 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 1998-06-07 08:40:53 +0000 |
commit | 19aada20841e80ea382a04c0f7cf480d899ba74d (patch) | |
tree | 07569a723ebb168a00e376ba072d23908df43488 /sys/i386/isa/clock.c | |
parent | 2113d2ba5a8a1fe28707302d7ac632886660181c (diff) | |
download | FreeBSD-src-19aada20841e80ea382a04c0f7cf480d899ba74d.zip FreeBSD-src-19aada20841e80ea382a04c0f7cf480d899ba74d.tar.gz |
Add a "this" style argument and a "void *private" so timecounters can
figure out which instance to wount with.
Diffstat (limited to 'sys/i386/isa/clock.c')
-rw-r--r-- | sys/i386/isa/clock.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/i386/isa/clock.c b/sys/i386/isa/clock.c index 671a3be..9c8e44f 100644 --- a/sys/i386/isa/clock.c +++ b/sys/i386/isa/clock.c @@ -34,7 +34,7 @@ * SUCH DAMAGE. * * from: @(#)clock.c 7.2 (Berkeley) 5/12/91 - * $Id: clock.c,v 1.120 1998/05/19 18:48:30 phk Exp $ + * $Id: clock.c,v 1.121 1998/05/28 09:30:06 phk Exp $ */ /* @@ -169,8 +169,8 @@ static u_char timer2_state; static void (*timer_func) __P((struct clockframe *frame)) = hardclock; static u_int tsc_present; -static unsigned i8254_get_timecount __P((void)); -static unsigned tsc_get_timecount __P((void)); +static unsigned i8254_get_timecount __P((struct timecounter *tc)); +static unsigned tsc_get_timecount __P((struct timecounter *tc)); static void set_timer_freq(u_int freq, int intr_freq); static struct timecounter tsc_timecounter[3] = { @@ -1130,7 +1130,7 @@ SYSCTL_PROC(_machdep, OID_AUTO, tsc_freq, CTLTYPE_INT | CTLFLAG_RW, 0, sizeof(u_int), sysctl_machdep_tsc_freq, "I", ""); static unsigned -i8254_get_timecount(void) +i8254_get_timecount(struct timecounter *tc) { u_int count; u_long ef; @@ -1159,7 +1159,7 @@ i8254_get_timecount(void) } static unsigned -tsc_get_timecount(void) +tsc_get_timecount(struct timecounter *tc) { return (rdtsc()); } |