From: Mark Rutland Date: Thu, 28 Apr 2011 14:47:10 +0000 (+0100) Subject: ARM: perf: refactor event mapping X-Git-Tag: v3.2-rc1~130^2~7^2^2~5 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e1f431b57ef9e4a68281540933fa74865cbb7a74;p=pandora-kernel.git ARM: perf: refactor event mapping Currently mapping an event type to a hardware configuration value depends on the data being pointed to from struct arm_pmu. These fields (cache_map, event_map, raw_event_mask) are currently specific to CPU PMUs, and do not serve the general case well. This patch replaces the event map pointers on struct arm_pmu with a new 'map_event' function pointer. Small shim functions are used to reuse the existing common code. 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