]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdgpu/gfx: create a common bitmask function (v2)
authorAlex Deucher <alexander.deucher@amd.com>
Tue, 6 Jun 2017 21:41:20 +0000 (17:41 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 7 Jun 2017 04:04:35 +0000 (00:04 -0400)
commitf03b49d5fbbc4407fc2a5769e27378f895064cd8
treeea8f7568e221efb57dfbbcfc82837b937cb11d8b
parentf9703927c2a2cc4e703ff474e3e6fcd6446650a3
drm/amdgpu/gfx: create a common bitmask function (v2)

The same function was duplicated in all the gfx IPs. Use
a single implementation for all.

v2: use static inline (Alex Xie)

Reviewed-by: Alex Xie <AlexBin.Xie@amd.com>
Suggested-by: Andres Rodriguez <andresx7@gmail.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.h
drivers/gpu/drm/amd/amdgpu/gfx_v6_0.c
drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c
drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c
drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c