Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 7 Apr 2006 20:06:29 GMT
From:      Warner Losh <imp@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 94774 for review
Message-ID:  <200604072006.k37K6Tv4054666@repoman.freebsd.org>

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

Change 94774 by imp@imp_Speedy on 2006/04/07 20:05:35

	Tweak output a little.

Affected files ...

.. //depot/projects/arm/src/sys/arm/at91/at91_pmc.c#14 edit

Differences ...

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

@@ -332,12 +332,11 @@
 	mckr = RD4(sc, PMC_MCKR);
 	mck.parent = clock_list[mckr & 0x3];
 	mck.parent->refcnt++;
-	freq = mck.parent->hz;
-	freq /= 1 << ((mckr >> 2) & 3);
+	freq = mck.parent->hz / (1 << ((mckr >> 2) & 3));
 	mck.hz = freq / (1 + ((mckr >> 8) & 3));
 
 	device_printf(sc->dev,
-	    "main clock: %d Hz PLLA: %d MHz CPU: %d MHz main %d MHz\n",
+	    "Primary: %d Hz PLLA: %d MHz CPU: %d MHz MCK: %d MHz\n",
 	    sc->main_clock_hz,
 	    at91_pmc_pll_rate(main_clock, RD4(sc, CKGR_PLLAR), 0) / 1000000,
 	    freq / 1000000, mck.hz / 1000000);



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