Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 8 Jul 2006 07:47:30 GMT
From:      Warner Losh <imp@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 100966 for review
Message-ID:  <200607080747.k687lUZh085753@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=100966

Change 100966 by imp@imp_lighthouse on 2006/07/08 07:46:42

	Deck chairs
	
	Also, make quality of this time counter reflect the underlying quality
	of the oscillator.  It is easily 20k times better than the cheapo
	32k xtal that's feeding the SCLK that the other timecounter has.
	Alas, this source of time is available only on our expensive
	gear...

Affected files ...

.. //depot/projects/arm/src/sys/arm/at91/at91_tc.c#4 edit

Differences ...

==== //depot/projects/arm/src/sys/arm/at91/at91_tc.c#4 (text+ko) ====

@@ -78,14 +78,11 @@
 #define AT91_TC_LOCK(_sc)		mtx_lock(&(_sc)->sc_mtx)
 #define	AT91_TC_UNLOCK(_sc)		mtx_unlock(&(_sc)->sc_mtx)
 #define AT91_TC_LOCK_INIT(_sc) \
-	mtx_init(&_sc->sc_mtx, device_get_nameunit(_sc->dev), \
-	    "tc", MTX_DEF)
+	mtx_init(&_sc->sc_mtx, device_get_nameunit(_sc->dev), "tc", MTX_DEF)
 #define AT91_TC_LOCK_DESTROY(_sc)	mtx_destroy(&_sc->sc_mtx);
 #define AT91_TC_ASSERT_LOCKED(_sc)	mtx_assert(&_sc->sc_mtx, MA_OWNED);
 #define AT91_TC_ASSERT_UNLOCKED(_sc) mtx_assert(&_sc->sc_mtx, MA_NOTOWNED);
-#define CDEV2SOFTC(dev)		((dev)->si_drv1)
 
-
 /* helper routines */
 static int at91_tc_activate(device_t dev);
 static void at91_tc_deactivate(device_t dev);
@@ -109,7 +106,7 @@
 	0xfffffu, /* counter_mask */
 	5000000, /* frequency */
 	"5MHz", /* name */
-	-20 /* quality */
+	20000 /* quality */
 };
 #endif
 



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