drm/amdkfd: Move the ignore_crat check before the CRAT table get
authorHanjun Guo <guohanjun@huawei.com>
Fri, 13 Nov 2020 03:11:13 +0000 (11:11 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 13 Nov 2020 22:29:46 +0000 (17:29 -0500)
commit1cb027950adcc23ce020e2839eef45edf0b51bd0
treef432ad07c9ae2162ac79bf6944542a2a0b7b7843
parent7a4894072f892ff485ee421076345369d33762ee
drm/amdkfd: Move the ignore_crat check before the CRAT table get

If the ignore_crat is set to non-zero value, it's no point getting
the CRAT table, so just move the ignore_crat check before we get the
CRAT table.

Signed-off-by: Hanjun Guo <guohanjun@huawei.com>
Reviewed-by: Felix Kuehling <Felix.Kuehling@amd.com>
Signed-off-by: Felix Kuehling <Felix.Kuehling@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdkfd/kfd_crat.c