powerpc: Fix bug where perf_counters breaks oprofile