Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 15 Aug 2013 17:21:07 +0000 (UTC)
From:      Brooks Davis <brooks@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r254373 - head/sys/x86/isa
Message-ID:  <201308151721.r7FHL7S5028018@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: brooks
Date: Thu Aug 15 17:21:06 2013
New Revision: 254373
URL: http://svnweb.freebsd.org/changeset/base/254373

Log:
  Call set_i8254_freq with MODE_STOP (0) rather than a magic number of 0.

Modified:
  head/sys/x86/isa/clock.c

Modified: head/sys/x86/isa/clock.c
==============================================================================
--- head/sys/x86/isa/clock.c	Thu Aug 15 16:41:27 2013	(r254372)
+++ head/sys/x86/isa/clock.c	Thu Aug 15 17:21:06 2013	(r254373)
@@ -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
 			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;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201308151721.r7FHL7S5028018>