Skip to content

Commit fdeb8e3

Browse files
wildea01Russell King
authored andcommitted
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 <[email protected]> Signed-off-by: Russell King <[email protected]>
1 parent 433e2f3 commit fdeb8e3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/arm/kernel/perf_event.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -503,7 +503,7 @@ __hw_perf_event_init(struct perf_event *event)
503503
event_requires_mode_exclusion(&event->attr)) {
504504
pr_debug("ARM performance counters do not support "
505505
"mode exclusion\n");
506-
return -EPERM;
506+
return -EOPNOTSUPP;
507507
}
508508

509509
/*

0 commit comments

Comments
 (0)