Source-Changes-HG archive

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

[src/trunk]: src/sys/kern A little more constification



details:   https://anonhg.NetBSD.org/src/rev/3503dc506e5a
branches:  trunk
changeset: 764719:3503dc506e5a
user:      matt <matt%NetBSD.org@localhost>
date:      Mon May 02 01:43:37 2011 +0000

description:
A little more constification

diffstat:

 sys/kern/subr_pcu.c |  10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diffs (45 lines):

diff -r 77e78c2a62c4 -r 3503dc506e5a sys/kern/subr_pcu.c
--- a/sys/kern/subr_pcu.c       Mon May 02 01:14:06 2011 +0000
+++ b/sys/kern/subr_pcu.c       Mon May 02 01:43:37 2011 +0000
@@ -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());
 



Home | Main Index | Thread Index | Old Index