[added to the 4.1 stable tree] powerpc/perf: Fix oops when grouping different pmu events