From: Mark Rutland Date: Wed, 27 Apr 2011 09:31:51 +0000 (+0100) Subject: ARM: perf: only register a CPU PMU when present X-Git-Tag: v3.2-rc1~130^2~7^2^2~14 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=48957155f8791964d8567479e6986f88343aba38;p=pandora-kernel.git ARM: perf: only register a CPU PMU when present Currently, an "empty" struct pmu is registered as the CPU PMU, regardless of whether there is a physical PMU. This burdens the accessor functions with checks to see whether a PMU is actually present. This patch changes initialisation to register a PMU only if there is a supported PMU present, and removes the checks that this change makes redundant. Signed-off-by: Mark Rutland Reviewed-by: Will Deacon Reviewed-by: Jamie Iles Reviewed-by: Ashwin Chaugule Signed-off-by: Will Deacon --- Reading git-diff-tree failed