diff options
author | Joseph Koshy <jkoshy@FreeBSD.org> | 2008-11-09 17:37:54 +0000 |
---|---|---|
committer | Joseph Koshy <jkoshy@FreeBSD.org> | 2008-11-09 17:37:54 +0000 |
commit | e829eb6d618d215b797c8e9b5f7e8c1ec4fc328d (patch) | |
tree | 9977abc62b812534217ab29faac7edc58cae0570 /sys/dev/hwpmc/hwpmc_pentium.c | |
parent | 2ad65bf421997d86f3420b0fa5edd5858344f084 (diff) |
- 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".
Notes
Notes:
svn path=/head/; revision=184802
Diffstat (limited to 'sys/dev/hwpmc/hwpmc_pentium.c')
-rw-r--r-- | sys/dev/hwpmc/hwpmc_pentium.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/sys/dev/hwpmc/hwpmc_pentium.c b/sys/dev/hwpmc/hwpmc_pentium.c index fc26b5252649..0084fa845f64 100644 --- a/sys/dev/hwpmc/hwpmc_pentium.c +++ b/sys/dev/hwpmc/hwpmc_pentium.c @@ -44,8 +44,14 @@ __FBSDID("$FreeBSD$"); */ int -pmc_initialize_p5(struct pmc_mdep *pmc_mdep) +pmc_p5_initialize(struct pmc_mdep *pmc_mdep, int ncpus) +{ + (void) pmc_mdep; (void) ncpus; + return (ENOSYS); /* nothing here yet */ +} + +void +pmc_p5_finalize(struct pmc_mdep *pmc_mdep) { (void) pmc_mdep; - return ENOSYS; /* nothing here yet */ } |