search for: sysfs_metric_id

Displaying 2 results from an estimated 2 matches for "sysfs_metric_id".

2018 May 24
3
[PATCH] gpu: Consistently use octal not symbolic permissions
...5_perf.c b/drivers/gpu/drm/i915/i915_perf.c index 019bd2d073ad..8e5009445963 100644 --- a/drivers/gpu/drm/i915/i915_perf.c +++ b/drivers/gpu/drm/i915/i915_perf.c @@ -3148,7 +3148,7 @@ static int create_dynamic_oa_sysfs_entry(struct drm_i915_private *dev_priv, { sysfs_attr_init(&oa_config->sysfs_metric_id.attr); oa_config->sysfs_metric_id.attr.name = "id"; - oa_config->sysfs_metric_id.attr.mode = S_IRUGO; + oa_config->sysfs_metric_id.attr.mode = 0444; oa_config->sysfs_metric_id.show = show_dynamic_id; oa_config->sysfs_metric_id.store = NULL; diff --git a/drivers/gpu/...
2018 May 25
0
[PATCH] gpu: Consistently use octal not symbolic permissions
...i915_perf.c > index 019bd2d073ad..8e5009445963 100644 > --- a/drivers/gpu/drm/i915/i915_perf.c > +++ b/drivers/gpu/drm/i915/i915_perf.c > @@ -3148,7 +3148,7 @@ static int create_dynamic_oa_sysfs_entry(struct drm_i915_private *dev_priv, > { > sysfs_attr_init(&oa_config->sysfs_metric_id.attr); > oa_config->sysfs_metric_id.attr.name = "id"; > - oa_config->sysfs_metric_id.attr.mode = S_IRUGO; > + oa_config->sysfs_metric_id.attr.mode = 0444; > oa_config->sysfs_metric_id.show = show_dynamic_id; > oa_config->sysfs_metric_id.store = NULL;...