drm/amdgpu: Create helper to clear AMDGPU_GEM_CREATE_CPU_GTT_USWC
authorAndrey Grodzovsky <andrey.grodzovsky@amd.com>
Wed, 24 Jul 2019 14:04:27 +0000 (10:04 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 31 Jul 2019 04:22:48 +0000 (23:22 -0500)
commit3d1b8ec76b8f4f91641fd87cc19cd980426a2060
tree2c3671143b44301b967f4c70d9f77e0d0e7c7e28
parente4c4073b0139d055d43a9568690fc560aab4fa5c
drm/amdgpu: Create helper to clear AMDGPU_GEM_CREATE_CPU_GTT_USWC

Move the logic to clear AMDGPU_GEM_CREATE_CPU_GTT_USWC in
amdgpu_bo_do_create into standalone helper so it can be reused
in other functions.

v4:
Switch to return bool.

v5: Fix typos.

Signed-off-by: Andrey Grodzovsky <andrey.grodzovsky@amd.com>
Acked-by: Michel Dänzer <michel.daenzer@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
drivers/gpu/drm/amd/amdgpu/amdgpu_object.h