drm/amdkfd: Simplify the mmap offset related bit operations
authorYong Zhao <Yong.Zhao@amd.com>
Tue, 15 Jan 2019 23:11:32 +0000 (18:11 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 13 Nov 2019 20:29:45 +0000 (15:29 -0500)
commit29453755715cbecd1112e0b30260a5eb2e23f51c
tree58ec6dd52fd5fb7a8f38127f4b8fd1108f38d633
parent5d4634b5d4456a0c06f93e32616f7f4f6d23eecd
drm/amdkfd: Simplify the mmap offset related bit operations

The new code uses straightforward bit shifts and thus has better readability.

Signed-off-by: Yong Zhao <Yong.Zhao@amd.com>
Reviewed-by: Felix Kuehling <Felix.Kuehling@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdkfd/kfd_chardev.c
drivers/gpu/drm/amd/amdkfd/kfd_events.c
drivers/gpu/drm/amd/amdkfd/kfd_priv.h
drivers/gpu/drm/amd/amdkfd/kfd_process.c