Module Name: src
Committed By: matt
Date: Sat Jun 18 08:21:20 UTC 2011
Modified Files:
src/sys/arch/powerpc/ibm4xx: cpu.c
Log Message:
Constify cputab.
To generate a diff of this commit:
cvs rdiff -u -r1.30 -r1.31 src/sys/arch/powerpc/ibm4xx/cpu.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/arch/powerpc/ibm4xx/cpu.c
diff -u src/sys/arch/powerpc/ibm4xx/cpu.c:1.30 src/sys/arch/powerpc/ibm4xx/cpu.c:1.31
--- src/sys/arch/powerpc/ibm4xx/cpu.c:1.30 Sat Jun 18 06:41:41 2011
+++ src/sys/arch/powerpc/ibm4xx/cpu.c Sat Jun 18 08:21:20 2011
@@ -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();