summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormarcel <marcel@FreeBSD.org>2005-04-20 20:19:24 +0000
committermarcel <marcel@FreeBSD.org>2005-04-20 20:19:24 +0000
commitefeeb3c55edd9ff546a6875baa173a2c4ec06a4e (patch)
tree908a0c4f3c258ce9318129d2bbf33b1ae631d76f
parentd08a0ddeaa681fd0094983be923fd3f295852ab3 (diff)
downloadFreeBSD-src-efeeb3c55edd9ff546a6875baa173a2c4ec06a4e.zip
FreeBSD-src-efeeb3c55edd9ff546a6875baa173a2c4ec06a4e.tar.gz
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@
-rw-r--r--sys/sys/pmc.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/sys/sys/pmc.h b/sys/sys/pmc.h
index ceabca4..b2a3479 100644
--- a/sys/sys/pmc.h
+++ b/sys/sys/pmc.h
@@ -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
};
OpenPOWER on IntegriCloud