diff options
| author | John Baldwin <jhb@FreeBSD.org> | 2001-03-28 03:06:10 +0000 |
|---|---|---|
| committer | John Baldwin <jhb@FreeBSD.org> | 2001-03-28 03:06:10 +0000 |
| commit | 0006681fe6b5ffaa4658d592e020d3a0c3594147 (patch) | |
| tree | db8d42c59fad73ff2c5df7452130bc4d7ef64cc6 /sys/kern/subr_prof.c | |
| parent | b944b9033a951dd2202bb5c7d6f304d5ea09199e (diff) | |
Notes
Diffstat (limited to 'sys/kern/subr_prof.c')
| -rw-r--r-- | sys/kern/subr_prof.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/sys/kern/subr_prof.c b/sys/kern/subr_prof.c index 5277a586c3b2..ce71fb6f132d 100644 --- a/sys/kern/subr_prof.c +++ b/sys/kern/subr_prof.c @@ -92,7 +92,7 @@ kmstartup(dummy) int nullfunc_loop_overhead; int nullfunc_loop_profiled_time; uintfptr_t tmp_addr; - int intrstate; + critical_t savecrit; #endif /* @@ -135,8 +135,7 @@ kmstartup(dummy) * Disable interrupts to avoid interference while we calibrate * things. */ - intrstate = save_intr(); - disable_intr(); + savecrit = critical_enter(); /* * Determine overheads. @@ -190,7 +189,7 @@ kmstartup(dummy) p->state = GMON_PROF_OFF; stopguprof(p); - restore_intr(intrstate); + critical_exit(savecrit); nullfunc_loop_profiled_time = 0; for (tmp_addr = (uintfptr_t)nullfunc_loop_profiled; |
