summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/i915/i915_drv.h
diff options
context:
space:
mode:
authorPaulo Zanoni <paulo.r.zanoni@intel.com>2014-03-07 20:08:15 -0300
committerDaniel Vetter <daniel.vetter@ffwll.ch>2014-03-19 16:39:46 +0100
commit5d584b2eca96543568a8db8eba008f2dab784367 (patch)
tree4d52d0fb4bd986112faeeda285d33362a3e2d5b8 /drivers/gpu/drm/i915/i915_drv.h
parent7c8615d8f9faf7a33ad528a012e097631599207f (diff)
downloadlwn-5d584b2eca96543568a8db8eba008f2dab784367.tar.gz
lwn-5d584b2eca96543568a8db8eba008f2dab784367.zip
drm/i915: move pc8.irqs_disabled to pm.irqs_disabled
When other platforms add runtime PM support they will also need to disable interrupts, so move the variable to the runtime PM struct. Also notice that the longer-term goal is to completely kill the regsave struct, and I even have patches for that. v2: - Rebase. v3: - Rebase. Reviewed-by: Jesse Barnes <jbarnes@virtuousgeek.org> Signed-off-by: Paulo Zanoni <paulo.r.zanoni@intel.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'drivers/gpu/drm/i915/i915_drv.h')
-rw-r--r--drivers/gpu/drm/i915/i915_drv.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/gpu/drm/i915/i915_drv.h b/drivers/gpu/drm/i915/i915_drv.h
index 02102712465e..84a80b610afa 100644
--- a/drivers/gpu/drm/i915/i915_drv.h
+++ b/drivers/gpu/drm/i915/i915_drv.h
@@ -1390,8 +1390,12 @@ struct ilk_wm_values {
* For more, read "Display Sequences for Package C8" on our documentation.
*/
struct i915_package_c8 {
- bool irqs_disabled;
struct mutex lock;
+};
+
+struct i915_runtime_pm {
+ bool suspended;
+ bool irqs_disabled;
struct {
uint32_t deimr;
@@ -1402,10 +1406,6 @@ struct i915_package_c8 {
} regsave;
};
-struct i915_runtime_pm {
- bool suspended;
-};
-
enum intel_pipe_crc_source {
INTEL_PIPE_CRC_SOURCE_NONE,
INTEL_PIPE_CRC_SOURCE_PLANE1,