drm/i915: Allowing changing of wm latencies for valid platforms

Signed-off-by: Sonika Jindal <sonika.jindal@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
This commit is contained in:
Sonika Jindal 2014-07-21 15:23:39 +05:30 committed by Daniel Vetter
parent 5fafe29295
commit 9ad0257c3b
1 changed files with 3 additions and 3 deletions

View File

@ -3267,7 +3267,7 @@ static int pri_wm_latency_open(struct inode *inode, struct file *file)
{ {
struct drm_device *dev = inode->i_private; struct drm_device *dev = inode->i_private;
if (!HAS_PCH_SPLIT(dev)) if (HAS_GMCH_DISPLAY(dev))
return -ENODEV; return -ENODEV;
return single_open(file, pri_wm_latency_show, dev); return single_open(file, pri_wm_latency_show, dev);
@ -3277,7 +3277,7 @@ static int spr_wm_latency_open(struct inode *inode, struct file *file)
{ {
struct drm_device *dev = inode->i_private; struct drm_device *dev = inode->i_private;
if (!HAS_PCH_SPLIT(dev)) if (HAS_GMCH_DISPLAY(dev))
return -ENODEV; return -ENODEV;
return single_open(file, spr_wm_latency_show, dev); return single_open(file, spr_wm_latency_show, dev);
@ -3287,7 +3287,7 @@ static int cur_wm_latency_open(struct inode *inode, struct file *file)
{ {
struct drm_device *dev = inode->i_private; struct drm_device *dev = inode->i_private;
if (!HAS_PCH_SPLIT(dev)) if (HAS_GMCH_DISPLAY(dev))
return -ENODEV; return -ENODEV;
return single_open(file, cur_wm_latency_show, dev); return single_open(file, cur_wm_latency_show, dev);