summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTed Unangst <tedu@cvs.openbsd.org>2003-04-14 17:52:52 +0000
committerTed Unangst <tedu@cvs.openbsd.org>2003-04-14 17:52:52 +0000
commit3d3d19715b79871fd3234ac688466c2b6809fa9f (patch)
tree70ea5a2afa2299d15318bce8867b04cbce42605d
parente1fb6fa38be3079e3ffc548acead593f9a3b444c (diff)
rename ticks to nticks to avoid global. ok deraadt@ krw@
-rw-r--r--sys/kern/subr_prof.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/kern/subr_prof.c b/sys/kern/subr_prof.c
index d4e13a9b17b..bf8530fd4bc 100644
--- a/sys/kern/subr_prof.c
+++ b/sys/kern/subr_prof.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: subr_prof.c,v 1.11 2002/06/10 11:11:22 nordin Exp $ */
+/* $OpenBSD: subr_prof.c,v 1.12 2003/04/14 17:52:51 tedu Exp $ */
/* $NetBSD: subr_prof.c,v 1.12 1996/04/22 01:38:50 christos Exp $ */
/*-
@@ -221,7 +221,7 @@ addupc_intr(struct proc *p, u_long pc)
* update fails, we simply turn off profiling.
*/
void
-addupc_task(struct proc *p, u_long pc, u_int ticks)
+addupc_task(struct proc *p, u_long pc, u_int nticks)
{
struct uprof *prof;
caddr_t addr;
@@ -229,7 +229,7 @@ addupc_task(struct proc *p, u_long pc, u_int ticks)
u_short v;
/* Testing P_PROFIL may be unnecessary, but is certainly safe. */
- if ((p->p_flag & P_PROFIL) == 0 || ticks == 0)
+ if ((p->p_flag & P_PROFIL) == 0 || nticks == 0)
return;
prof = &p->p_stats->p_prof;
@@ -239,7 +239,7 @@ addupc_task(struct proc *p, u_long pc, u_int ticks)
addr = prof->pr_base + i;
if (copyin(addr, (caddr_t)&v, sizeof(v)) == 0) {
- v += ticks;
+ v += nticks;
if (copyout((caddr_t)&v, addr, sizeof(v)) == 0)
return;
}