From ccb56f14eacb173e5041d0c4e40cb1f0264123ee Mon Sep 17 00:00:00 2001 From: matt Date: Mon, 2 May 2011 01:43:37 +0000 Subject: [PATCH] A little more constification --- sys/kern/subr_pcu.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/sys/kern/subr_pcu.c b/sys/kern/subr_pcu.c index 59a1dc71ab82..86c66be24af1 100644 --- a/sys/kern/subr_pcu.c +++ b/sys/kern/subr_pcu.c @@ -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 -__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 #include @@ -91,7 +91,7 @@ pcu_switchpoint(lwp_t *l) 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 @@ pcu_load(const pcu_ops_t *pcu) { 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 @@ void 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());