summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/i915/i915_debugfs.c
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2011-06-29 00:30:34 -0700
committerKeith Packard <keithp@keithp.com>2011-06-29 11:20:45 -0700
commitd70bed1947772f34d66ada3bd923bfc12ea2452b (patch)
treeba0c438e8f2a996bf504923ef2dcf296581ad59a /drivers/gpu/drm/i915/i915_debugfs.c
parent0d72c6fcb5cd215eeab824fac216ea42c5b574aa (diff)
drm/i915: Hold struct_mutex during i915_save_state/i915_restore_state
Lots of register access in these functions, some of which requires the struct mutex. These functions now hold the struct mutex across the calls to i915_save_display and i915_restore_display, and so the internal mutex calls in those functions have been removed. To ensure that no-one else was calling them (and hence violating the new required locking invarient), those functions have been made static. gen6_enable_rps locks the struct mutex, and so i915_restore_state unlocks the mutex around calls to that function. Reviewed-by: Ben Widawsky <ben@bwidawsk.net> Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'drivers/gpu/drm/i915/i915_debugfs.c')
0 files changed, 0 insertions, 0 deletions