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 Constify cputab.



details:   https://anonhg.NetBSD.org/src/rev/cdfa1f6ec6a4
branches:  trunk
changeset: 766191:cdfa1f6ec6a4
user:      matt <matt%NetBSD.org@localhost>
date:      Sat Jun 18 08:21:20 2011 +0000

description:
Constify cputab.

diffstat:

 sys/arch/powerpc/ibm4xx/cpu.c |  10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diffs (45 lines):

diff -r 48ca5d42e7f5 -r cdfa1f6ec6a4 sys/arch/powerpc/ibm4xx/cpu.c
--- a/sys/arch/powerpc/ibm4xx/cpu.c     Sat Jun 18 08:17:58 2011 +0000
+++ b/sys/arch/powerpc/ibm4xx/cpu.c     Sat Jun 18 08:21:20 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: cpu.c,v 1.30 2011/06/18 06:41:41 matt Exp $    */
+/*     $NetBSD: cpu.c,v 1.31 2011/06/18 08:21:20 matt Exp $    */
 
 /*
  * Copyright 2001 Wasabi Systems, Inc.
@@ -36,7 +36,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: cpu.c,v 1.30 2011/06/18 06:41:41 matt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: cpu.c,v 1.31 2011/06/18 08:21:20 matt Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -56,7 +56,7 @@
        u_int mask;
        const char *name;
 };
-static struct cputab models[] = {
+static const struct cputab models[] = {
        { PVR_401A1,    0xffff0000,     "401A1"         },
        { PVR_401B2,    0xffff0000,     "401B21"        },
        { PVR_401C2,    0xffff0000,     "401C2"         },
@@ -117,7 +117,7 @@
 static void
 cpuattach(device_t parent, device_t self, void *aux)
 {
-       struct cputab *cp = models;
+       const struct cputab *cp = models;
        u_int pvr;
        u_int processor_freq;
        prop_number_t freq;
@@ -166,7 +166,7 @@
 void
 cpu_probe_cache(void)
 {
-       struct cputab *cp = models;
+       const struct cputab *cp = models;
        u_int pvr;
 
        pvr = mfpvr();



Home | Main Index | Thread Index | Old Index