svn commit: r334311 - head/sys/dev/hwpmc
Matt Macy
mmacy at FreeBSD.org
Tue May 29 04:04:07 UTC 2018
Author: mmacy
Date: Tue May 29 04:04:06 2018
New Revision: 334311
URL: https://svnweb.freebsd.org/changeset/base/334311
Log:
hwpmc: don't incrorrectly strip the ANY flag
Modified:
head/sys/dev/hwpmc/hwpmc_core.c
Modified: head/sys/dev/hwpmc/hwpmc_core.c
==============================================================================
--- head/sys/dev/hwpmc/hwpmc_core.c Tue May 29 03:58:29 2018 (r334310)
+++ head/sys/dev/hwpmc/hwpmc_core.c Tue May 29 04:04:06 2018 (r334311)
@@ -256,13 +256,6 @@ iaf_allocate_pmc(int cpu, int ri, struct pmc *pm,
validflags = IAF_MASK;
- if (core_cputype != PMC_CPU_INTEL_ATOM &&
- core_cputype != PMC_CPU_INTEL_ATOM_SILVERMONT)
- validflags &= ~IAF_ANY;
-
- if ((flags & ~validflags) != 0)
- return (EINVAL);
-
if (caps & PMC_CAP_INTERRUPT)
flags |= IAF_PMI;
if (caps & PMC_CAP_SYSTEM)
@@ -445,10 +438,6 @@ iaf_stop_pmc(int cpu, int ri)
("[core,%d] illegal row-index %d", __LINE__, ri));
fc = (IAF_MASK << (ri * 4));
-
- if (core_cputype != PMC_CPU_INTEL_ATOM &&
- core_cputype != PMC_CPU_INTEL_ATOM_SILVERMONT)
- fc &= ~IAF_ANY;
iafc->pc_iafctrl &= ~fc;
More information about the svn-src-all
mailing list