diff options
author | Tvrtko Ursulin <[email protected]> | 2017-11-28 10:55:15 +0000 |
---|---|---|
committer | Tvrtko Ursulin <[email protected]> | 2017-11-28 17:04:40 +0000 |
commit | 00a797225e53a4f488ab725e0b438c2970aa41d7 (patch) | |
tree | 749dfd58e38eb4a25f98632ee13cb43ec110e068 /tools/perf/scripts/python/stackcollapse.py | |
parent | 448aa9117cfa6591c4e18cb32a0329a66b9cd3b7 (diff) |
drm/i915/pmu: Return -EINVAL when selecting the inactive CPU
In commit 0426c0465461 ("drm/i915/pmu: Only allow running on a single
CPU") I attempted to clarify the CPU hotplug logic in our PMU
implementation, but missed that a more logical error to return, when
attempting to initialize an event on a currently inactive CPU, is -EINVAL
rather than -ENODEV.
This is because i915 PMU explicitly disallows running counters on more
than one CPU at a time, and is not reporting that the requested CPU does
not exist, or is off-line.
Signed-off-by: Tvrtko Ursulin <[email protected]>
Reported-by: Chris Wilson <[email protected]>
Cc: Chris Wilson <[email protected]>
Reviewed-by: Chris Wilson <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions