From: Will Deacon Date: Wed, 4 Jul 2012 17:15:42 +0000 (+0100) Subject: ARM: 7441/1: perf: return -EOPNOTSUPP if requested mode exclusion is unavailable X-Git-Tag: v3.5-rc6~3^2~3 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=fdeb8e35fd59e79dec385f98eb4b6d2e3398264b;p=profile%2Fivi%2Fkernel-x86-ivi.git ARM: 7441/1: perf: return -EOPNOTSUPP if requested mode exclusion is unavailable We currently return -EPERM if the user requests mode exclusion that is not supported by the CPU. This looks pretty confusing from userspace and is inconsistent with other architectures (ppc, x86). This patch returns -EOPNOTSUPP instead. Signed-off-by: Will Deacon Signed-off-by: Russell King --- diff --git a/arch/arm/kernel/perf_event.c b/arch/arm/kernel/perf_event.c index 186c8cb..a02eada 100644 --- a/arch/arm/kernel/perf_event.c +++ b/arch/arm/kernel/perf_event.c @@ -503,7 +503,7 @@ __hw_perf_event_init(struct perf_event *event) event_requires_mode_exclusion(&event->attr)) { pr_debug("ARM performance counters do not support " "mode exclusion\n"); - return -EPERM; + return -EOPNOTSUPP; } /*