OSDN Git Service

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)
commit378506a7e600a025131df947a15f9bc23b522690
treeea8f7568e221efb57dfbbcfc82837b937cb11d8b
parent943c05bdb53da273c43ec44eec37c6a70409b5e9
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