powerpc/perf: Move code to select SIAR or pt_regs into perf_read_regs
authorAnton Blanchard <anton@samba.org>
Tue, 26 Jun 2012 01:01:36 +0000 (01:01 +0000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Tue, 10 Jul 2012 09:18:41 +0000 (19:18 +1000)
The logic to choose whether to use the SIAR or get the information
out of pt_regs is going to get more complicated, so do it once in
perf_read_regs.

We overload regs->result which is gross but we are already doing it
with regs->dsisr.

Signed-off-by: Anton Blanchard <anton@samba.org>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>

No differences found