Am 10.10.2018 um 13:42 schrieb likun Gao:
From: Likun Gao <Likun.Gao@xxxxxxx>
Put function rlc_init,rlc_fini,rlc_resume,rlc_stop,rlc_start into structure
amdgpu_rlc_funcs.
Signed-off-by: Likun Gao <Likun.Gao@xxxxxxx>
---
drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.h | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.h b/drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.h
index b61b5c1..bb7b1ad 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.h
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.h
@@ -41,6 +41,12 @@
struct amdgpu_rlc_funcs {
void (*enter_safe_mode)(struct amdgpu_device *adev);
void (*exit_safe_mode)(struct amdgpu_device *adev);
+ int (*rlc_init)(struct amdgpu_device *adev);
+ void (*rlc_fini)(struct amdgpu_device *adev);
+ int (*rlc_resume)(struct amdgpu_device *adev);
+ void (*rlc_stop)(struct amdgpu_device *adev);
+ void (*rlc_reset)(struct amdgpu_device *adev);
+ void (*rlc_start)(struct amdgpu_device *adev);
Please drop the rlc_ prefix to all those members. The structure name
already denotes it as rlc functions.
Christian.
};
struct amdgpu_rlc {
_______________________________________________
amd-gfx mailing list
amd-gfx@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/amd-gfx