Skip to content

Commit

Permalink
drm/i915: Allowing changing of wm latencies for valid platforms
Browse files Browse the repository at this point in the history
Signed-off-by: Sonika Jindal <sonika.jindal@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
  • Loading branch information
Sonika Jindal authored and Daniel Vetter committed Jul 23, 2014
1 parent 5fafe29 commit 9ad0257
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions drivers/gpu/drm/i915/i915_debugfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -3267,7 +3267,7 @@ static int pri_wm_latency_open(struct inode *inode, struct file *file)
{
struct drm_device *dev = inode->i_private;

if (!HAS_PCH_SPLIT(dev))
if (HAS_GMCH_DISPLAY(dev))
return -ENODEV;

return single_open(file, pri_wm_latency_show, dev);
Expand All @@ -3277,7 +3277,7 @@ static int spr_wm_latency_open(struct inode *inode, struct file *file)
{
struct drm_device *dev = inode->i_private;

if (!HAS_PCH_SPLIT(dev))
if (HAS_GMCH_DISPLAY(dev))
return -ENODEV;

return single_open(file, spr_wm_latency_show, dev);
Expand All @@ -3287,7 +3287,7 @@ static int cur_wm_latency_open(struct inode *inode, struct file *file)
{
struct drm_device *dev = inode->i_private;

if (!HAS_PCH_SPLIT(dev))
if (HAS_GMCH_DISPLAY(dev))
return -ENODEV;

return single_open(file, cur_wm_latency_show, dev);
Expand Down

0 comments on commit 9ad0257

Please sign in to comment.