From: Michael Neuling Date: Mon, 13 May 2013 18:44:57 +0000 (+0000) Subject: powerpc/pmu: Fix order of interpreting BHRB target entries X-Git-Tag: v3.10-rc2~31^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=506e70d13236dfdb0bc15e0914298ab0a7b7f4df;p=pandora-kernel.git powerpc/pmu: Fix order of interpreting BHRB target entries The current Branch History Rolling Buffer (BHRB) code misinterprets the order of entries in the hardware buffer. It assumes that a branch target address will be read _after_ its corresponding branch. In reality the branch target comes before (lower mfbhrb entry) it's corresponding branch. This is a rewrite of the code to take this into account. Signed-off-by: Michael Neuling Signed-off-by: Benjamin Herrenschmidt --- Reading git-diff-tree failed