use cli/sti instead of splhigh/splx for MCOUNT_ENTER/MCOUNT_EXIT.

this makes clearer how much time mcount() is really taking.
This commit is contained in:
chs 2001-08-23 06:17:00 +00:00
parent ce0d046061
commit 9fa41ab3b9

View File

@ -1,4 +1,4 @@
/* $NetBSD: profile.h,v 1.14 2000/01/22 22:46:56 mycroft Exp $ */
/* $NetBSD: profile.h,v 1.15 2001/08/23 06:17:00 chs Exp $ */
/*
* Copyright (c) 1992, 1993
@ -67,10 +67,6 @@ mcount() \
}
#ifdef _KERNEL
/*
* Note that we assume splhigh() and splx() cannot call mcount()
* recursively.
*/
#define MCOUNT_ENTER s = splhigh()
#define MCOUNT_EXIT splx(s)
#define MCOUNT_ENTER (void)&s; __asm__("cli");
#define MCOUNT_EXIT __asm__("sti");
#endif /* _KERNEL */