Module Name:    src
Committed By:   matt
Date:           Mon May  2 01:43:37 UTC 2011

Modified Files:
        src/sys/kern: subr_pcu.c

Log Message:
A little more constification


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/sys/kern/subr_pcu.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/kern/subr_pcu.c
diff -u src/sys/kern/subr_pcu.c:1.4 src/sys/kern/subr_pcu.c:1.5
--- src/sys/kern/subr_pcu.c:1.4	Mon May  2 00:29:53 2011
+++ src/sys/kern/subr_pcu.c	Mon May  2 01:43:37 2011
@@ -1,4 +1,4 @@
-/*	$NetBSD: subr_pcu.c,v 1.4 2011/05/02 00:29:53 rmind Exp $	*/
+/*	$NetBSD: subr_pcu.c,v 1.5 2011/05/02 01:43:37 matt Exp $	*/
 
 /*-
  * Copyright (c) 2011 The NetBSD Foundation, Inc.
@@ -57,7 +57,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: subr_pcu.c,v 1.4 2011/05/02 00:29:53 rmind Exp $");
+__KERNEL_RCSID(0, "$NetBSD: subr_pcu.c,v 1.5 2011/05/02 01:43:37 matt Exp $");
 
 #include <sys/param.h>
 #include <sys/cpu.h>
@@ -91,7 +91,7 @@
 		if ((pcu_inuse & (1 << id)) == 0) {
 			continue;
 		}
-		struct cpu_info *pcu_ci = l->l_pcu_cpu[id];
+		struct cpu_info * const pcu_ci = l->l_pcu_cpu[id];
 		if (pcu_ci == NULL || pcu_ci == l->l_cpu) {
 			continue;
 		}
@@ -195,7 +195,7 @@
 {
 	const u_int id = pcu->pcu_id;
 	struct cpu_info *ci, *curci;
-	lwp_t *l = curlwp;
+	lwp_t * const l = curlwp;
 	uint64_t where;
 	int s;
 
@@ -248,7 +248,7 @@
 pcu_discard(const pcu_ops_t *pcu)
 {
 	const u_int id = pcu->pcu_id;
-	lwp_t *l = curlwp;
+	lwp_t * const l = curlwp;
 
 	KASSERT(!cpu_intr_p() && !cpu_softintr_p());
 

Reply via email to