clock.c (118956) | clock.c (118987) |
---|---|
1/*- 2 * Copyright (c) 1990 The Regents of the University of California. 3 * All rights reserved. 4 * 5 * This code is derived from software contributed to Berkeley by 6 * William Jolitz and Don Ahn. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 23 unchanged lines hidden (view full) --- 32 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 33 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 34 * SUCH DAMAGE. 35 * 36 * from: @(#)clock.c 7.2 (Berkeley) 5/12/91 37 */ 38 39#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 1990 The Regents of the University of California. 3 * All rights reserved. 4 * 5 * This code is derived from software contributed to Berkeley by 6 * William Jolitz and Don Ahn. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 23 unchanged lines hidden (view full) --- 32 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 33 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 34 * SUCH DAMAGE. 35 * 36 * from: @(#)clock.c 7.2 (Berkeley) 5/12/91 37 */ 38 39#include <sys/cdefs.h> |
40__FBSDID("$FreeBSD: head/sys/i386/isa/clock.c 118956 2003-08-15 15:50:49Z phk $"); | 40__FBSDID("$FreeBSD: head/sys/i386/isa/clock.c 118987 2003-08-16 08:23:53Z phk $"); |
41 42/* 43 * Routines to handle clock hardware. 44 */ 45 46/* 47 * inittodr, settodr and support routines written 48 * by Christoph Robitschko <chmr@edvz.tu-graz.ac.at> --- 101 unchanged lines hidden (view full) --- 150static unsigned i8254_get_timecount(struct timecounter *tc); 151static void set_timer_freq(u_int freq, int intr_freq); 152 153static struct timecounter i8254_timecounter = { 154 i8254_get_timecount, /* get_timecount */ 155 0, /* no poll_pps */ 156 ~0u, /* counter_mask */ 157 0, /* frequency */ | 41 42/* 43 * Routines to handle clock hardware. 44 */ 45 46/* 47 * inittodr, settodr and support routines written 48 * by Christoph Robitschko <chmr@edvz.tu-graz.ac.at> --- 101 unchanged lines hidden (view full) --- 150static unsigned i8254_get_timecount(struct timecounter *tc); 151static void set_timer_freq(u_int freq, int intr_freq); 152 153static struct timecounter i8254_timecounter = { 154 i8254_get_timecount, /* get_timecount */ 155 0, /* no poll_pps */ 156 ~0u, /* counter_mask */ 157 0, /* frequency */ |
158 "i8254" /* name */ | 158 "i8254", /* name */ 159 0 /* quality */ |
159}; 160 161static void 162clkintr(struct clockframe frame) 163{ 164 165 if (timecounter->tc_get_timecount == i8254_get_timecount) { 166 mtx_lock_spin(&clock_lock); --- 921 unchanged lines hidden --- | 160}; 161 162static void 163clkintr(struct clockframe frame) 164{ 165 166 if (timecounter->tc_get_timecount == i8254_get_timecount) { 167 mtx_lock_spin(&clock_lock); --- 921 unchanged lines hidden --- |