diff options
| author | Yang Wang <[email protected]> | 2024-05-16 23:56:24 +0000 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2024-05-17 21:40:39 +0000 |
| commit | 258ed689bc3163f86204f75df6c23f92b59b3fad (patch) | |
| tree | f179fc4fe01eb23f29c88a241806edda4862087e /drivers/gpu/drm/amd/amdgpu/amdgpu_mca.h | |
| parent | drm/amd/pm: Add xgmi plpd to aldebaran pm_policy (diff) | |
| download | kernel-258ed689bc3163f86204f75df6c23f92b59b3fad.tar.gz kernel-258ed689bc3163f86204f75df6c23f92b59b3fad.zip | |
drm/amdgpu: change bank cache lock type to spinlock
modify the lock type to 'spinlock' to avoid schedule issue
in interrupt context.
Signed-off-by: Yang Wang <[email protected]>
Reviewed-by: Tao Zhou <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_mca.h')
| -rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_mca.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_mca.h b/drivers/gpu/drm/amd/amdgpu/amdgpu_mca.h index e80323ff90c1..c3c184c88dad 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_mca.h +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_mca.h @@ -84,7 +84,7 @@ struct mca_bank_set { struct mca_bank_cache { struct mca_bank_set mca_set; - struct mutex lock; + spinlock_t lock; }; struct amdgpu_mca { |
