aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_atomfirmware.c
diff options
context:
space:
mode:
authorThomas Weißschuh <[email protected]>2024-03-22 17:05:57 +0000
committerJoel Granados <[email protected]>2024-04-24 07:43:54 +0000
commit4a7b29f6509470a7e63dd67e516268fbef226194 (patch)
treef6373f1d592729aff778510290d68065e8160e13 /drivers/gpu/drm/amd/amdgpu/amdgpu_atomfirmware.c
parentsysctl: drop sysctl_is_perm_empty_ctl_table (diff)
downloadkernel-4a7b29f6509470a7e63dd67e516268fbef226194.tar.gz
kernel-4a7b29f6509470a7e63dd67e516268fbef226194.zip
sysctl: move sysctl type to ctl_table_header
Move the SYSCTL_TABLE_TYPE_{DEFAULT,PERMANENTLY_EMPTY} enums from ctl_table to ctl_table_header. Removing the mutable member is necessary to constify static instances of struct ctl_table. Move the initialization of the sysctl_mount_point type into init_header() where all the other header fields are also initialized. As a side-effect the memory usage of the sysctl core is reduced. Each ctl_table_header instance can manage multiple ctl_table instances and is only allocated when the table is actually registered. This saves 8 bytes of memory per ctl_table on 64bit, 4 due to the enum field itself and 4 due to padding. Signed-off-by: Thomas Weißschuh <[email protected]> Signed-off-by: Joel Granados <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_atomfirmware.c')
0 files changed, 0 insertions, 0 deletions