File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -1230,7 +1230,7 @@ static int iommu_completion_wait(struct amd_iommu *iommu)
1230
1230
if (!iommu -> need_sync )
1231
1231
return 0 ;
1232
1232
1233
- data = atomic64_add_return ( 1 , & iommu -> cmd_sem_val );
1233
+ data = atomic64_inc_return ( & iommu -> cmd_sem_val );
1234
1234
build_completion_wait (& cmd , iommu , data );
1235
1235
1236
1236
raw_spin_lock_irqsave (& iommu -> lock , flags );
@@ -2890,7 +2890,7 @@ static void iommu_flush_irt_and_complete(struct amd_iommu *iommu, u16 devid)
2890
2890
return ;
2891
2891
2892
2892
build_inv_irt (& cmd , devid );
2893
- data = atomic64_add_return ( 1 , & iommu -> cmd_sem_val );
2893
+ data = atomic64_inc_return ( & iommu -> cmd_sem_val );
2894
2894
build_completion_wait (& cmd2 , iommu , data );
2895
2895
2896
2896
raw_spin_lock_irqsave (& iommu -> lock , flags );
You can’t perform that action at this time.
0 commit comments