[PATCH 5.18 642/879] powerpc/perf: Fix the threshold compare group constraint for power9