ARM: perf: allow armpmu to implement mode exclusion
authorWill Deacon <will.deacon@arm.com>
Tue, 19 Jul 2011 10:57:30 +0000 (11:57 +0100)
committerWill Deacon <will.deacon@arm.com>
Wed, 31 Aug 2011 09:18:01 +0000 (10:18 +0100)
commit05d22fde3c0b86c8395d8f12ac01fbbc524d73ca
treee0ea6c8b2a90a8dc02c7bcea9288b9176b3f7b69
parentecf5a893211c26e02b9d4cfd6ba2183473ac0203
ARM: perf: allow armpmu to implement mode exclusion

Modern PMUs allow for mode exclusion, so we no longer wish to return
-EPERM if it is requested.

This patch provides a hook in the armpmu structure for implementing
mode exclusion. The hw_perf_event initialisation is slightly delayed so
that the backend code can update the structure if required.

Acked-by: Jamie Iles <jamie@jamieiles.com>
Reviewed-by: Jean Pihet <j-pihet@ti.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
arch/arm/kernel/perf_event.c