diff options
| author | Chris Wilson <[email protected]> | 2016-04-05 10:22:25 +0100 |
|---|---|---|
| committer | Chris Wilson <[email protected]> | 2016-04-05 11:13:52 +0100 |
| commit | 168cf367d7017a9d19522f8e59462c8b01c1212e (patch) | |
| tree | 9e5838f8605f18fc5d5757d248299f38bd7c7876 /tools/perf/scripts/python | |
| parent | e87666b52f00fdb373349c4e6e1c09ced964e3c5 (diff) | |
drm/i915/shrinker: Refactor common uninterruptible locking
Both the oom and vmap notifier callbacks have a loop to acquire the
struct_mutex and set the device as uninterruptible, within a certain
time. Refactor the common code into a pair of functions.
Suggested-by: Joonas Lahtinen <[email protected]>
Signed-off-by: Chris Wilson <[email protected]>
Cc: Joonas Lahtinen <[email protected]>
Cc: Tvrtko Ursulin <[email protected]>
Link: http://patchwork.freedesktop.org/patch/msgid/[email protected]
Reviewed-by: Joonas Lahtinen <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions