From owner-p4-projects@FreeBSD.ORG Fri Apr 7 20:06:30 2006 Return-Path: X-Original-To: p4-projects@freebsd.org Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id DB8B916A402; Fri, 7 Apr 2006 20:06:29 +0000 (UTC) X-Original-To: perforce@freebsd.org Delivered-To: perforce@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9E04D16A400 for ; Fri, 7 Apr 2006 20:06:29 +0000 (UTC) (envelope-from imp@freebsd.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6A1CC43D55 for ; Fri, 7 Apr 2006 20:06:29 +0000 (GMT) (envelope-from imp@freebsd.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.1/8.13.1) with ESMTP id k37K6TEs054670 for ; Fri, 7 Apr 2006 20:06:29 GMT (envelope-from imp@freebsd.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id k37K6Tv4054666 for perforce@freebsd.org; Fri, 7 Apr 2006 20:06:29 GMT (envelope-from imp@freebsd.org) Date: Fri, 7 Apr 2006 20:06:29 GMT Message-Id: <200604072006.k37K6Tv4054666@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to imp@freebsd.org using -f From: Warner Losh To: Perforce Change Reviews Cc: Subject: PERFORCE change 94774 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 07 Apr 2006 20:06:30 -0000 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);