diff options
author | brooks <brooks@FreeBSD.org> | 2013-08-15 17:21:06 +0000 |
---|---|---|
committer | brooks <brooks@FreeBSD.org> | 2013-08-15 17:21:06 +0000 |
commit | 861668a16b928430d786e9bb4cb0143b3ff35f44 (patch) | |
tree | ae02e4adb83366e9531fc7b1ad684391a4fe7fe2 | |
parent | c6e2041529c9c69f395d4780ca05dbd3a9d186e5 (diff) | |
download | FreeBSD-src-861668a16b928430d786e9bb4cb0143b3ff35f44.zip FreeBSD-src-861668a16b928430d786e9bb4cb0143b3ff35f44.tar.gz |
Call set_i8254_freq with MODE_STOP (0) rather than a magic number of 0.
-rw-r--r-- | sys/x86/isa/clock.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/x86/isa/clock.c b/sys/x86/isa/clock.c index 29ec02d..a12e175 100644 --- a/sys/x86/isa/clock.c +++ b/sys/x86/isa/clock.c @@ -469,7 +469,7 @@ i8254_restore(void) if (attimer_sc != NULL) set_i8254_freq(attimer_sc->mode, attimer_sc->period); else - set_i8254_freq(0, 0); + set_i8254_freq(MODE_STOP, 0); } #ifndef __amd64__ @@ -504,7 +504,7 @@ i8254_init(void) if (pc98_machine_type & M_8M) i8254_freq = 1996800L; /* 1.9968 MHz */ #endif - set_i8254_freq(0, 0); + set_i8254_freq(MODE_STOP, 0); } void @@ -539,7 +539,7 @@ sysctl_machdep_i8254_freq(SYSCTL_HANDLER_ARGS) set_i8254_freq(attimer_sc->mode, attimer_sc->period); attimer_sc->tc.tc_frequency = freq; } else { - set_i8254_freq(0, 0); + set_i8254_freq(MODE_STOP, 0); } } return (error); @@ -715,7 +715,7 @@ attimer_attach(device_t dev) i8254_pending = i8254_intsrc->is_pic->pic_source_pending; resource_int_value(device_get_name(dev), device_get_unit(dev), "timecounter", &i8254_timecounter); - set_i8254_freq(0, 0); + set_i8254_freq(MODE_STOP, 0); if (i8254_timecounter) { sc->tc.tc_get_timecount = i8254_get_timecount; sc->tc.tc_counter_mask = 0xffff; |