diff options
author | Flora Cui <flora.cui@amd.com> | 2020-08-18 10:16:20 +0800 |
---|---|---|
committer | Flora Cui <Flora.Cui@amd.com> | 2020-08-18 21:35:36 -0400 |
commit | 55da7b037d02048282409fe32b79ff08ff10367a (patch) | |
tree | 295e1b5b90dc8f2165f2ebf82d37e080d28216e3 /include | |
parent | e11ac984d2fb7b371ed12e4bdc8e6fac02d33e99 (diff) |
drm/amdkcl: refactor kcl wrapper for dma-resv
Signed-off-by: Flora Cui <flora.cui@amd.com>
Reviewed-by: Yang Xiong <Yang.Xiong@amd.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/kcl/kcl_dma-resv.h (renamed from include/kcl/backport/kcl_reservation_backport.h) | 11 | ||||
-rw-r--r-- | include/kcl/kcl_reservation.h | 12 |
2 files changed, 21 insertions, 2 deletions
diff --git a/include/kcl/backport/kcl_reservation_backport.h b/include/kcl/kcl_dma-resv.h index ee14e6afcfbe..08ea310898ca 100644 --- a/include/kcl/backport/kcl_reservation_backport.h +++ b/include/kcl/kcl_dma-resv.h @@ -1,6 +1,13 @@ /* SPDX-License-Identifier: MIT */ -#ifndef AMDKCL_RESERVATION_BACKPORT_H -#define AMDKCL_RESERVATION_BACKPORT_H + +/* + * NOTICE: + * THIS HEADER IS FOR DMA-RESV.H ONLY + * DO NOT INCLUDE THIS HEADER ANY OTHER PLACE + * INCLUDE LINUX/DMA-RESV.H OR LINUX/RESERVATION.H INSTEAD + */ +#ifndef KCL_KCL_DMA_RESV_H +#define KCL_KCL_DMA_RESV_H #include <asm/barrier.h> #include <linux/ww_mutex.h> diff --git a/include/kcl/kcl_reservation.h b/include/kcl/kcl_reservation.h new file mode 100644 index 000000000000..4429466cd16a --- /dev/null +++ b/include/kcl/kcl_reservation.h @@ -0,0 +1,12 @@ +/* SPDX-License-Identifier: MIT */ +#ifndef KCL_KCL_RESERVATION_H +#define KCL_KCL_RESERVATION_H + +#include <linux/dma-resv.h> + +#ifndef HAVE_LINUX_DMA_RESV_H +#define reservation_object dma_resv +#define reservation_object_list dma_resv_list +#endif + +#endif /* AMDKCL_RESERVATION_H */ |