drm/amdkfd: Remove unaligned memory access
authorHarish Kasiviswanathan <Harish.Kasiviswanathan@amd.com>
Wed, 7 Feb 2018 01:32:42 +0000 (20:32 -0500)
committerOded Gabbay <oded.gabbay@gmail.com>
Wed, 7 Feb 2018 01:32:42 +0000 (20:32 -0500)
commit4252bf686622f6c71958c4fabbcb6a64deba1cf7
tree3ba774e973f3d8fe22475280f33a1876d55ff290
parent64d1c3a43a6fb5cef32a085bc17cbbe31945a651
drm/amdkfd: Remove unaligned memory access

Unaligned atomic operations can cause problems on some CPU
architectures. Use simpler bitmask operations instead. Atomic bit
manipulations are not necessary since dqm->lock is held during these
operations.

Signed-off-by: Harish Kasiviswanathan <Harish.Kasiviswanathan@amd.com>
Signed-off-by: Felix Kuehling <Felix.Kuehling@amd.com>
Acked-by: Oded Gabbay <oded.gabbay@gmail.com>
Signed-off-by: Oded Gabbay <oded.gabbay@gmail.com>
drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c