]> git.baikalelectronics.ru Git - kernel.git/commit
ARM: 7441/1: perf: return -EOPNOTSUPP if requested mode exclusion is unavailable
authorWill Deacon <will.deacon@arm.com>
Wed, 4 Jul 2012 17:15:42 +0000 (18:15 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Thu, 5 Jul 2012 08:50:56 +0000 (09:50 +0100)
commit1f5043c53cd1a664b9ca50676c99180a69ba2511
treede9be588521f924f0b1c11d8f66a4c9b83543871
parentf1ee8fae92d7106e6d888f3e28d97666b97720d7
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 <will.deacon@arm.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/kernel/perf_event.c