summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/amd/include
diff options
context:
space:
mode:
authorRicardo B. Marliere <ricardo@marliere.net>2024-03-05 15:15:14 +0300
committerAlex Deucher <alexander.deucher@amd.com>2024-03-06 23:24:50 +0300
commit6d3b27e046abe09a1cc676e486433628d9849bd0 (patch)
tree09e74b518c86a8df9cab5c79c28bf5cc420720ac /drivers/gpu/drm/amd/include
parent5e592956cc36abd2e568245dcf12b36c85d9462d (diff)
downloadlinux-6d3b27e046abe09a1cc676e486433628d9849bd0.tar.xz
drm/amdkfd: make kfd_class constant
Since commit 43a7206b0963 ("driver core: class: make class_register() take a const *"), the driver core allows for struct class to be in read-only memory, so move the kfd_class structure to be declared at build time placing it into read-only memory, instead of having to be dynamically allocated at boot time. Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Suggested-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Signed-off-by: Ricardo B. Marliere <ricardo@marliere.net> Signed-off-by: Felix Kuehling <felix.kuehling@amd.com> Reviewed-by: Felix Kuehling <felix.kuehling@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/include')
0 files changed, 0 insertions, 0 deletions