Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 318541
b: refs/heads/master
c: 112abd2
h: refs/heads/master
i:
  318539: e69a049
v: v3
  • Loading branch information
Daniel Vetter committed Jun 1, 2012
1 parent 2bc023c commit dc6dfbf
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 14 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 98fd81cd64674545a30a4f95388f086a626d37d2
refs/heads/master: 112abd291db7d47974f166e742104d761bc76977
24 changes: 11 additions & 13 deletions trunk/drivers/gpu/drm/i915/i915_sysfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -205,20 +205,18 @@ void i915_setup_sysfs(struct drm_device *dev)
{
int ret;

/* ILK and below don't yet have relevant sysfs files */
if (INTEL_INFO(dev)->gen < 6)
return;

ret = sysfs_merge_group(&dev->primary->kdev.kobj, &rc6_attr_group);
if (ret)
DRM_ERROR("RC6 residency sysfs setup failed\n");

if (!IS_IVYBRIDGE(dev))
return;
if (INTEL_INFO(dev)->gen >= 6) {
ret = sysfs_merge_group(&dev->primary->kdev.kobj,
&rc6_attr_group);
if (ret)
DRM_ERROR("RC6 residency sysfs setup failed\n");
}

ret = device_create_bin_file(&dev->primary->kdev, &dpf_attrs);
if (ret)
DRM_ERROR("l3 parity sysfs setup failed\n");
if (IS_IVYBRIDGE(dev)) {
ret = device_create_bin_file(&dev->primary->kdev, &dpf_attrs);
if (ret)
DRM_ERROR("l3 parity sysfs setup failed\n");
}
}

void i915_teardown_sysfs(struct drm_device *dev)
Expand Down

0 comments on commit dc6dfbf

Please sign in to comment.