From: Paul Mackerras Date: Thu, 9 Sep 2010 19:02:40 +0000 (+0000) Subject: powerpc/perf: Fix sampling enable for PPC970 X-Git-Tag: v2.6.37-rc1~180^2~45 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9f5f9ffe50e90ed73040d2100db8bfc341cee352;p=pandora-kernel.git powerpc/perf: Fix sampling enable for PPC970 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 Cc: stable@kernel.org Signed-off-by: Paul Mackerras Signed-off-by: Benjamin Herrenschmidt --- Reading git-diff-tree failed