clock.c (553af8f1ec71d397b5b4fd5876622b9269936e63) clock.c (1d6fb900ed90d1fd6547e2d79da9d0259f450c2c)
1/*-
2 * SPDX-License-Identifier: BSD-3-Clause
3 *
4 * Copyright (c) 1990 The Regents of the University of California.
5 * Copyright (c) 2010 Alexander Motin <mav@FreeBSD.org>
6 * All rights reserved.
7 *
8 * This code is derived from software contributed to Berkeley by

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

455 } else {
456 set_i8254_freq(MODE_STOP, 0);
457 }
458 }
459 return (error);
460}
461
462SYSCTL_PROC(_machdep, OID_AUTO, i8254_freq,
1/*-
2 * SPDX-License-Identifier: BSD-3-Clause
3 *
4 * Copyright (c) 1990 The Regents of the University of California.
5 * Copyright (c) 2010 Alexander Motin <mav@FreeBSD.org>
6 * All rights reserved.
7 *
8 * This code is derived from software contributed to Berkeley by

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

455 } else {
456 set_i8254_freq(MODE_STOP, 0);
457 }
458 }
459 return (error);
460}
461
462SYSCTL_PROC(_machdep, OID_AUTO, i8254_freq,
463 CTLTYPE_INT | CTLFLAG_RW | CTLFLAG_NEEDGIANT,
463 CTLTYPE_INT | CTLFLAG_RW | CTLFLAG_MPSAFE,
464 0, sizeof(u_int), sysctl_machdep_i8254_freq, "IU",
465 "i8254 timer frequency");
466
467static unsigned
468i8254_get_timecount(struct timecounter *tc)
469{
470 device_t dev = (device_t)tc->tc_priv;
471 struct attimer_softc *sc = device_get_softc(dev);

--- 188 unchanged lines hidden ---
464 0, sizeof(u_int), sysctl_machdep_i8254_freq, "IU",
465 "i8254 timer frequency");
466
467static unsigned
468i8254_get_timecount(struct timecounter *tc)
469{
470 device_t dev = (device_t)tc->tc_priv;
471 struct attimer_softc *sc = device_get_softc(dev);

--- 188 unchanged lines hidden ---