From: Mark Rutland Date: Mon, 6 Jun 2011 09:37:50 +0000 (+0100) Subject: ARM: perf: add type field to struct arm_pmu X-Git-Tag: v3.2-rc1~130^2~7^2^2~6 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7ae18a5717cbbf1879bdd5b66d7009a9958e5aef;p=pandora-kernel.git ARM: perf: add type field to struct arm_pmu Currently, the ARM perf code assumes all PMUs it will handle are CPU PMUs, having ARM_PMU_DEVICE_CPU hardcoded when reserving or releasing hardware. This means that currently, the ARM perf code can't support system PMUs. This patch adds a 'type' field to struct arm_pmu, which allows the code to reserve & release the hardware regardless of the PMU type. 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