Date: Tue, 29 May 2018 04:04:06 +0000 (UTC) From: Matt Macy <mmacy@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r334311 - head/sys/dev/hwpmc Message-ID: <201805290404.w4T446AX048893@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201805290404.w4T446AX048893>