Deleted Added
full compact
clock.c (220581) clock.c (220613)
1/*-
2 * Copyright (c) 1990 The Regents of the University of California.
3 * Copyright (c) 2010 Alexander Motin <mav@FreeBSD.org>
4 * All rights reserved.
5 *
6 * This code is derived from software contributed to Berkeley by
7 * William Jolitz and Don Ahn.
8 *

--- 20 unchanged lines hidden (view full) ---

29 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
30 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
31 * SUCH DAMAGE.
32 *
33 * from: @(#)clock.c 7.2 (Berkeley) 5/12/91
34 */
35
36#include <sys/cdefs.h>
1/*-
2 * Copyright (c) 1990 The Regents of the University of California.
3 * Copyright (c) 2010 Alexander Motin <mav@FreeBSD.org>
4 * All rights reserved.
5 *
6 * This code is derived from software contributed to Berkeley by
7 * William Jolitz and Don Ahn.
8 *

--- 20 unchanged lines hidden (view full) ---

29 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
30 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
31 * SUCH DAMAGE.
32 *
33 * from: @(#)clock.c 7.2 (Berkeley) 5/12/91
34 */
35
36#include <sys/cdefs.h>
37__FBSDID("$FreeBSD: head/sys/x86/isa/clock.c 220581 2011-04-12 22:41:52Z jkim $");
37__FBSDID("$FreeBSD: head/sys/x86/isa/clock.c 220613 2011-04-14 00:07:08Z jkim $");
38
39/*
40 * Routines to handle clock hardware.
41 */
42
43#include "opt_clock.h"
44#include "opt_isa.h"
45#include "opt_mca.h"

--- 476 unchanged lines hidden (view full) ---

522 } else {
523 set_i8254_freq(0, 0);
524 }
525 }
526 return (error);
527}
528
529SYSCTL_PROC(_machdep, OID_AUTO, i8254_freq, CTLTYPE_INT | CTLFLAG_RW,
38
39/*
40 * Routines to handle clock hardware.
41 */
42
43#include "opt_clock.h"
44#include "opt_isa.h"
45#include "opt_mca.h"

--- 476 unchanged lines hidden (view full) ---

522 } else {
523 set_i8254_freq(0, 0);
524 }
525 }
526 return (error);
527}
528
529SYSCTL_PROC(_machdep, OID_AUTO, i8254_freq, CTLTYPE_INT | CTLFLAG_RW,
530 0, sizeof(u_int), sysctl_machdep_i8254_freq, "IU", "");
530 0, sizeof(u_int), sysctl_machdep_i8254_freq, "IU",
531 "i8254 timer frequency");
531
532static unsigned
533i8254_get_timecount(struct timecounter *tc)
534{
535 device_t dev = (device_t)tc->tc_priv;
536 struct attimer_softc *sc = device_get_softc(dev);
537 register_t flags;
538 uint16_t count;

--- 244 unchanged lines hidden ---
532
533static unsigned
534i8254_get_timecount(struct timecounter *tc)
535{
536 device_t dev = (device_t)tc->tc_priv;
537 struct attimer_softc *sc = device_get_softc(dev);
538 register_t flags;
539 uint16_t count;

--- 244 unchanged lines hidden ---