Include <sys/gmon.h> instead of <machine/profile.h> for the declaration

of kmupetext().  The declaration is misplaced in <machine/profile.h>
since it is not MD and not related to the lowest level of profiling.
It will be moved, but getting it via <sys/gmon.h> already works.
This commit is contained in:
Bruce Evans 2004-05-19 14:36:38 +00:00
parent 9573c7e9cf
commit 5ad6c3b1ea

View File

@ -32,6 +32,9 @@ __FBSDID("$FreeBSD$");
#include <sys/param.h>
#include <sys/systm.h>
#ifdef GPROF
#include <sys/gmon.h>
#endif
#include <sys/kernel.h>
#include <sys/lock.h>
#include <sys/mac.h>
@ -44,9 +47,6 @@ __FBSDID("$FreeBSD$");
#include <sys/linker.h>
#include <machine/elf.h>
#ifdef GPROF
#include <machine/profile.h>
#endif
#include <vm/vm.h>
#include <vm/vm_param.h>