Deleted Added
full compact
clock.c (212812) clock.c (218965)
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 212812 2010-09-18 07:36:43Z mav $");
37__FBSDID("$FreeBSD: head/sys/x86/isa/clock.c 218965 2011-02-23 09:22:33Z brucec $");
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"

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

470static int
471sysctl_machdep_i8254_freq(SYSCTL_HANDLER_ARGS)
472{
473 int error;
474 u_int freq;
475
476 /*
477 * Use `i8254' instead of `timer' in external names because `timer'
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"

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

470static int
471sysctl_machdep_i8254_freq(SYSCTL_HANDLER_ARGS)
472{
473 int error;
474 u_int freq;
475
476 /*
477 * Use `i8254' instead of `timer' in external names because `timer'
478 * is is too generic. Should use it everywhere.
478 * is too generic. Should use it everywhere.
479 */
480 freq = i8254_freq;
481 error = sysctl_handle_int(oidp, &freq, 0, req);
482 if (error == 0 && req->newptr != NULL) {
483 i8254_freq = freq;
484 if (attimer_sc != NULL) {
485 set_i8254_freq(attimer_sc->mode, attimer_sc->period);
486 attimer_sc->tc.tc_frequency = freq;

--- 261 unchanged lines hidden ---
479 */
480 freq = i8254_freq;
481 error = sysctl_handle_int(oidp, &freq, 0, req);
482 if (error == 0 && req->newptr != NULL) {
483 i8254_freq = freq;
484 if (attimer_sc != NULL) {
485 set_i8254_freq(attimer_sc->mode, attimer_sc->period);
486 attimer_sc->tc.tc_frequency = freq;

--- 261 unchanged lines hidden ---