summaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/sched-migration.py
diff options
context:
space:
mode:
authorBen Widawsky <ben@bwidawsk.net>2013-04-23 23:15:29 -0700
committerDaniel Vetter <daniel.vetter@ffwll.ch>2013-05-06 11:30:29 +0200
commit186507e9e8e89d5920305fdffd8cbba6366da795 (patch)
tree0cffd6274ac181055dcc5c2242f40473afcfddfc /tools/perf/scripts/python/sched-migration.py
parenta1520318a51d6c21b1d9229a9c35b4fcb890b175 (diff)
drm/i915: Assert mutex_is_locked on context lookup
Because our context refcounting doesn't grab a ref at lookup time, it is unsafe to do so without the lock. NOTE: We don't have an easy way to put the assertion in the lookup function which is where this really belongs. Context switching is good enough because it actually asserts even more correctness by protecting the default_context. Signed-off-by: Ben Widawsky <ben@bwidawsk.net> Reviewed-by: Jesse Barnes <jbarnes@virtuousgeek.org> [danvet: s/BUG/WARN/] Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'tools/perf/scripts/python/sched-migration.py')
0 files changed, 0 insertions, 0 deletions