drm/i915: Make pc8_status report status for all runtime PM platforms
authorDamien Lespiau <damien.lespiau@intel.com>
Thu, 4 Jun 2015 17:23:57 +0000 (18:23 +0100)
committerJani Nikula <jani.nikula@intel.com>
Fri, 12 Jun 2015 10:14:37 +0000 (13:14 +0300)
Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
Reviewed-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
drivers/gpu/drm/i915/i915_debugfs.c

index 3e17210c3277e1a1bee1d7e8bd6db5024ec4ab15..8d25ce4a40db1ad7a26e20fec1e5e1d5ac1f2d27 100644 (file)
@@ -2476,13 +2476,13 @@ static int i915_energy_uJ(struct seq_file *m, void *data)
        return 0;
 }
 
-static int i915_pc8_status(struct seq_file *m, void *unused)
+static int i915_runtime_pm_status(struct seq_file *m, void *unused)
 {
        struct drm_info_node *node = m->private;
        struct drm_device *dev = node->minor->dev;
        struct drm_i915_private *dev_priv = dev->dev_private;
 
-       if (!IS_HASWELL(dev) && !IS_BROADWELL(dev)) {
+       if (!HAS_RUNTIME_PM(dev)) {
                seq_puts(m, "not supported\n");
                return 0;
        }
@@ -5039,7 +5039,7 @@ static const struct drm_info_list i915_debugfs_list[] = {
        {"i915_edp_psr_status", i915_edp_psr_status, 0},
        {"i915_sink_crc_eDP1", i915_sink_crc, 0},
        {"i915_energy_uJ", i915_energy_uJ, 0},
-       {"i915_pc8_status", i915_pc8_status, 0},
+       {"i915_runtime_pm_status", i915_runtime_pm_status, 0},
        {"i915_power_domain_info", i915_power_domain_info, 0},
        {"i915_display_info", i915_display_info, 0},
        {"i915_semaphore_status", i915_semaphore_status, 0},