perf: Fix fixed counter busy detection
authorBarret Rhoden <brho@cs.berkeley.edu>
Thu, 19 May 2016 22:36:24 +0000 (18:36 -0400)
committerBarret Rhoden <brho@cs.berkeley.edu>
Thu, 16 Jun 2016 15:48:36 +0000 (11:48 -0400)
commite4c3cc214849421a1ff584112b982b65f65d1d49
treefa3bb6791451a9c50ad82dca82280829b9a00666
parent4a95d727442c92af578b876a8e929f59052540a6
perf: Fix fixed counter busy detection

We're supposed to shift the mask to the right spot, which is the index
times the width of the mask.  E.g. for fixed counter 1, we want to look at
the 4 bits shifted in by 4.

Signed-off-by: Barret Rhoden <brho@cs.berkeley.edu>
kern/arch/x86/perfmon.c