From: Will Deacon Date: Tue, 19 Jul 2011 21:25:55 +0000 (+0100) Subject: ARM: perf: index ARMv7 event counters starting from zero X-Git-Tag: v3.2-rc1~130^2~7^2^2~20 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c691bb6249b25104fcb6dad31bd772c139ce4a50;p=pandora-kernel.git ARM: perf: index ARMv7 event counters starting from zero The current ARMv7 PMU backend indexes event counters from two, with index zero being reserved and index one being used to represent the cycle counter. This patch tidies up the code by indexing from one instead (with zero for the cycle counter). This allows us to remove many of the accessor macros along with the counter enumeration and makes the code much more readable. Acked-by: Jamie Iles Reviewed-by: Jean Pihet Signed-off-by: Will Deacon --- Reading git-diff-tree failed