powerpc/power8: Fix oprofile and perf
authorMichael Neuling <mikey@neuling.org>
Tue, 4 Jun 2013 19:38:54 +0000 (19:38 +0000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Sun, 9 Jun 2013 22:36:19 +0000 (08:36 +1000)
commit6a60f9e7d8bb3e81fa8bd6752f1473e216424ec4
tree71fe5b72eb068f4133dfc6dec6405fb52513d91d
parentb8b3de224f194005ad87ede6fd022fcc2bef3b1a
powerpc/power8: Fix oprofile and perf

In 2ac6f42 powerpc/cputable: Fix oprofile_cpu_type on power8
we broke all power8 hw events.

This reverts this change and uses oprofile_type instead. Perf now works
on POWER8 again and oprofile will revert to using timers on POWER8.

Kudos to mpe this fix.

Signed-off-by: Michael Neuling <mikey@neuling.org>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/kernel/cputable.c