]> Gentwo Git Trees - linux/.git/commit
drm/radeon: Use vmalloc_array and vcalloc to simplify code
authorQianfeng Rong <rongqianfeng@vivo.com>
Sat, 16 Aug 2025 14:37:51 +0000 (22:37 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 18 Aug 2025 21:06:24 +0000 (17:06 -0400)
commite3bd536580fe553d5768673660b1745ff1bb3b91
treee55322f87cb6e84c9b04af5ee1ebbb1cf65415d2
parent3856a53db6620f29dda1b42af678698c0ccc6504
drm/radeon: Use vmalloc_array and vcalloc to simplify code

Use vcalloc() and vmalloc_array() to simplify the functions
radeon_gart_init().

vmalloc_array() is also optimized better, resulting in less instructions
being used.

Signed-off-by: Qianfeng Rong <rongqianfeng@vivo.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/radeon/radeon_gart.c