diff options
author | Martin Pieuchot <mpi@cvs.openbsd.org> | 2013-02-12 08:06:23 +0000 |
---|---|---|
committer | Martin Pieuchot <mpi@cvs.openbsd.org> | 2013-02-12 08:06:23 +0000 |
commit | aa4bc9246a0fcaf361cb75d59ca7d19d72962d05 (patch) | |
tree | fc106555772640bd51b2f44ca8966b605ebe3547 /sys/kern/kern_clock.c | |
parent | 7af426a5b2c56a8f45fc6a4fa8adffb2eab344b4 (diff) |
Back out per-CPU kernel profiling, it shouldn't modify a public header
at this moment.
Diffstat (limited to 'sys/kern/kern_clock.c')
-rw-r--r-- | sys/kern/kern_clock.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/kern/kern_clock.c b/sys/kern/kern_clock.c index 57220881f03..d7d51646c2c 100644 --- a/sys/kern/kern_clock.c +++ b/sys/kern/kern_clock.c @@ -1,4 +1,4 @@ -/* $OpenBSD: kern_clock.c,v 1.77 2013/02/11 17:05:25 mpi Exp $ */ +/* $OpenBSD: kern_clock.c,v 1.78 2013/02/12 08:06:22 mpi Exp $ */ /* $NetBSD: kern_clock.c,v 1.34 1996/06/09 04:51:03 briggs Exp $ */ /*- @@ -421,8 +421,8 @@ statclock(struct clockframe *frame) /* * Kernel statistics are just like addupc_intr, only easier. */ - g = ci->ci_gmon; - if (g != NULL && g->state == GMON_PROF_ON) { + g = &_gmonparam; + if (g->state == GMON_PROF_ON) { i = CLKF_PC(frame) - g->lowpc; if (i < g->textsize) { i /= HISTFRACTION * sizeof(*g->kcount); |