o Reverse the inclusion chain from MD->MI to MI->MD by including

<machine/pmc_mdep.h> here.
o  Remove the #error directive. There's no union md_pm referenced
   on (as of yet) unsupported platforms and will not be if there
   are no MD extensions for a particular platform.

Further cleanups can be expected.

Ok'd: jkoshy@
This commit is contained in:
Marcel Moolenaar 2005-04-20 20:19:24 +00:00
parent f9e6931c3d
commit 26a38a07e3
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=145336

View file

@ -29,6 +29,8 @@
#ifndef _SYS_PMC_H_
#define _SYS_PMC_H_
#include <machine/pmc_mdep.h>
#define PMC_MODULE_NAME "hwpmc"
#define PMC_NAME_MAX 16 /* HW counter name size */
#define PMC_CLASS_MAX 4 /* #classes of PMCs in a CPU */
@ -1115,10 +1117,6 @@ struct pmc {
} pm_amd;
} pm_md;
#else
#error Unsupported PMC architecture.
#endif
};