From fdb59f927ee739bbda9db671e11bf83d5a3143f3 Mon Sep 17 00:00:00 2001 From: jkoshy Date: Sun, 9 Nov 2008 17:37:54 +0000 Subject: - Separate PMC class dependent code from other kinds of machine dependencies. A 'struct pmc_classdep' structure describes operations on PMCs; 'struct pmc_mdep' contains one or more 'struct pmc_classdep' structures depending on the CPU in question. Inside PMC class dependent code, row indices are relative to the PMCs supported by the PMC class; MI code in "hwpmc_mod.c" translates global row indices before invoking class dependent operations. - Augment the OP_GETCPUINFO request with the number of PMCs present in a PMC class. - Move code common to Intel CPUs to file "hwpmc_intel.c". - Move TSC handling to file "hwpmc_tsc.c". --- sys/modules/hwpmc/Makefile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'sys/modules') diff --git a/sys/modules/hwpmc/Makefile b/sys/modules/hwpmc/Makefile index 167d748..350d361 100644 --- a/sys/modules/hwpmc/Makefile +++ b/sys/modules/hwpmc/Makefile @@ -9,7 +9,7 @@ KMOD= hwpmc SRCS= hwpmc_mod.c hwpmc_logging.c vnode_if.h .if ${MACHINE_ARCH} == "amd64" -SRCS+= hwpmc_amd.c hwpmc_piv.c hwpmc_x86.c +SRCS+= hwpmc_amd.c hwpmc_intel.c hwpmc_piv.c hwpmc_tsc.c hwpmc_x86.c SRCS+= device_if.h bus_if.h .endif @@ -18,7 +18,8 @@ SRCS+= hwpmc_arm.c .endif .if ${MACHINE_ARCH} == "i386" -SRCS+= hwpmc_amd.c hwpmc_piv.c hwpmc_ppro.c hwpmc_pentium.c hwpmc_x86.c +SRCS+= hwpmc_amd.c hwpmc_intel.c hwpmc_piv.c hwpmc_ppro.c hwpmc_pentium.c +SRCS+= hwpmc_tsc.c hwpmc_x86.c SRCS+= device_if.h bus_if.h .endif -- cgit v1.1