hwpmc: fix fixed counters checks
This commit is contained in:
parent
a9a99372d9
commit
9645bcabdf
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=334598
@ -251,14 +251,13 @@ iaf_allocate_pmc(int cpu, int ri, struct pmc *pm,
|
||||
if (ev == 0xC0 && ri != 0)
|
||||
return (EINVAL);
|
||||
/* CPU_CLK_UNHALTED.THREAD */
|
||||
else if (ev == 0x3C && ri != 1)
|
||||
if (ev == 0x3C && ri != 1)
|
||||
return (EINVAL);
|
||||
/* CPU_CLK_UNHALTED.REF */
|
||||
else if (ev == 0x0 && umask == 0x3 && ri != 2)
|
||||
return (EINVAL);
|
||||
else
|
||||
if (ev == 0x0 && umask == 0x3 && ri != 2)
|
||||
return (EINVAL);
|
||||
|
||||
|
||||
flags = 0;
|
||||
if (config & IAP_OS)
|
||||
flags |= IAF_OS;
|
||||
|
Loading…
Reference in New Issue
Block a user