From: Mark Rutland Date: Thu, 28 Apr 2011 09:17:04 +0000 (+0100) Subject: ARM: perf: lock PMU registers per-CPU X-Git-Tag: v3.2-rc1~130^2~7^2^2~7 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0f78d2d5ccf72ec834da6901886a40fd8e3b7615;p=pandora-kernel.git ARM: perf: lock PMU registers per-CPU Currently, a single lock serialises access to CPU PMU registers. This global locking is unnecessary as PMU registers are local to the CPU they monitor. This patch replaces the global lock with a per-CPU lock. As the lock is in struct cpu_hw_events, PMUs providing a single cpu_hw_events instance can be locked globally. 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