diff options
-rw-r--r-- | arch/powerpc/perf/power8-pmu.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/arch/powerpc/perf/power8-pmu.c b/arch/powerpc/perf/power8-pmu.c index 3ad363da05f6..fe2763b6e039 100644 --- a/arch/powerpc/perf/power8-pmu.c +++ b/arch/powerpc/perf/power8-pmu.c | |||
@@ -325,9 +325,10 @@ static int power8_get_constraint(u64 event, unsigned long *maskp, unsigned long | |||
325 | * HV writable, and there is no API for guest kernels to modify | 325 | * HV writable, and there is no API for guest kernels to modify |
326 | * it. The solution is for the hypervisor to initialise the | 326 | * it. The solution is for the hypervisor to initialise the |
327 | * field to zeroes, and for us to only ever allow events that | 327 | * field to zeroes, and for us to only ever allow events that |
328 | * have a cache selector of zero. | 328 | * have a cache selector of zero. The bank selector (bit 3) is |
329 | * irrelevant, as long as the rest of the value is 0. | ||
329 | */ | 330 | */ |
330 | if (cache) | 331 | if (cache & 0x7) |
331 | return -1; | 332 | return -1; |
332 | 333 | ||
333 | } else if (event & EVENT_IS_L1) { | 334 | } else if (event & EVENT_IS_L1) { |