diff options
author | Chris Wilson <[email protected]> | 2019-10-25 17:54:42 +0100 |
---|---|---|
committer | Chris Wilson <[email protected]> | 2019-10-25 22:56:14 +0100 |
commit | c442292a661bec3a32cf2a351c53c5f07da20e21 (patch) | |
tree | 8657108c4895abbe3b78c334470e362726751fbd /tools/perf/scripts/python/syscall-counts.py | |
parent | 0e99f939f08fc36820869e87dee109c5996abff0 (diff) |
drm/i915/pmu: Initialise the spinlock before registering
As the GT may be running in parallel with the module initialisation
code, we may enter i915_pmu_gt_parked() as we are executing
i915_pmu_register(). We have to init the spinlock before we mark
pmu.event_init so that it is available for use by i915_pmu_gt_parked()
(which may run as soon as event_init is set).
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=112127
Signed-off-by: Chris Wilson <[email protected]>
Cc: Tvrtko Ursulin <[email protected]>
Reviewed-by: Matthew Auld <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts.py')
0 files changed, 0 insertions, 0 deletions