]> git.karo-electronics.de Git - karo-tx-linux.git/commit
powerpc/perf: Fix sampling enable for PPC970
authorPaul Mackerras <paulus@samba.org>
Thu, 9 Sep 2010 19:02:40 +0000 (19:02 +0000)
committerPaul Gortmaker <paul.gortmaker@windriver.com>
Thu, 6 Jan 2011 23:08:18 +0000 (18:08 -0500)
commitab45a58b6536bdd81eb88833b13885e504b50690
tree8a0b7f81b70200205b07d6e2903b4d55081b4c72
parentd2b82d06a3fbbc17369324b6acb48fad7aeaed33
powerpc/perf: Fix sampling enable for PPC970

commit 9f5f9ffe50e90ed73040d2100db8bfc341cee352 upstream.

The logic to distinguish marked instruction events from ordinary events
on PPC970 and derivatives was flawed.  The result is that instruction
sampling didn't get enabled in the PMU for some marked instruction
events, so they would never trigger.  This fixes it by adding the
appropriate break statements in the switch statement.

Reported-by: David Binderman <dcb314@hotmail.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
arch/powerpc/kernel/ppc970-pmu.c