Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/powerpc/ibm4xx Sprinkle a small amount of KNF.



details:   https://anonhg.NetBSD.org/src/rev/2110ee90b86d
branches:  trunk
changeset: 534802:2110ee90b86d
user:      simonb <simonb%NetBSD.org@localhost>
date:      Sat Aug 03 13:12:44 2002 +0000

description:
Sprinkle a small amount of KNF.

diffstat:

 sys/arch/powerpc/ibm4xx/clock.c |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (20 lines):

diff -r d14049de2f2e -r 2110ee90b86d sys/arch/powerpc/ibm4xx/clock.c
--- a/sys/arch/powerpc/ibm4xx/clock.c   Sat Aug 03 12:56:23 2002 +0000
+++ b/sys/arch/powerpc/ibm4xx/clock.c   Sat Aug 03 13:12:44 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: clock.c,v 1.3 2002/07/11 01:38:48 simonb Exp $ */
+/*     $NetBSD: clock.c,v 1.4 2002/08/03 13:12:44 simonb Exp $ */
 /*      $OpenBSD: clock.c,v 1.3 1997/10/13 13:42:53 pefo Exp $  */
 
 /*
@@ -131,8 +131,9 @@
 void
 cpu_initclocks(void)
 {
+
        ticks_per_intr = ticks_per_sec / hz;
-       stathz = profhz = ticks_per_sec / (1<<PERIOD_POWER);
+       stathz = profhz = ticks_per_sec / (1 << PERIOD_POWER);
        printf("Setting PIT to %ld/%d = %ld\n", ticks_per_sec, hz, ticks_per_intr);
        asm volatile ("mftb %0" : "=r"(lasttb));
        mtspr(SPR_PIT, ticks_per_intr);



Home | Main Index | Thread Index | Old Index