drm/amdkfd: use default_groups in kobj_type
There are currently 2 ways to create a set of sysfs files for a
kobj_type, through the default_attrs field, and the default_groups
field. Move the amdkfd sysfs code to use default_groups field which has
been the preferred way since aa30f47cf6 ("kobject: Add support for
default attribute groups to kobj_type") so that we can soon get rid of
the obsolete default_attrs field.
Cc: Felix Kuehling <Felix.Kuehling@amd.com>
Cc: Alex Deucher <alexander.deucher@amd.com>
Cc: "Christian König" <christian.koenig@amd.com>
Cc: "Pan, Xinhui" <Xinhui.Pan@amd.com>
Cc: David Airlie <airlied@linux.ie>
Cc: Daniel Vetter <daniel@ffwll.ch>
Cc: amd-gfx@lists.freedesktop.org
Cc: dri-devel@lists.freedesktop.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
committed by
Alex Deucher
parent
7ff61cdcc8
commit
5fea167ec0
@@ -461,6 +461,7 @@ static struct attribute *procfs_queue_attrs[] = {
|
||||
&attr_queue_gpuid,
|
||||
NULL
|
||||
};
|
||||
ATTRIBUTE_GROUPS(procfs_queue);
|
||||
|
||||
static const struct sysfs_ops procfs_queue_ops = {
|
||||
.show = kfd_procfs_queue_show,
|
||||
@@ -468,7 +469,7 @@ static const struct sysfs_ops procfs_queue_ops = {
|
||||
|
||||
static struct kobj_type procfs_queue_type = {
|
||||
.sysfs_ops = &procfs_queue_ops,
|
||||
.default_attrs = procfs_queue_attrs,
|
||||
.default_groups = procfs_queue_groups,
|
||||
};
|
||||
|
||||
static const struct sysfs_ops procfs_stats_ops = {
|
||||
|
||||
Reference in New Issue
Block a user