From: Anton Blanchard Date: Wed, 9 Mar 2011 03:38:42 +0000 (+1100) Subject: perf, powerpc: Handle events that raise an exception without overflowing X-Git-Tag: v2.6.39-rc1~427^2~8 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0837e3242c73566fc1c0196b4ec61779c25ffc93;p=pandora-kernel.git perf, powerpc: Handle events that raise an exception without overflowing Events on POWER7 can roll back if a speculative event doesn't eventually complete. Unfortunately in some rare cases they will raise a performance monitor exception. We need to catch this to ensure we reset the PMC. In all cases the PMC will be 256 or less cycles from overflow. Signed-off-by: Anton Blanchard Signed-off-by: Peter Zijlstra Cc: # as far back as it applies cleanly LKML-Reference: <20110309143842.6c22845e@kryten> Signed-off-by: Ingo Molnar --- Reading git-diff-tree failed