mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-05 13:51:52 +00:00
AMD IOMMU: convert iommu->need_sync to bool
Impact: use bool instead of int for iommu->need_sync Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
This commit is contained in:
parent
ab89672286
commit
0cfd7aa90b
2 changed files with 3 additions and 3 deletions
|
@ -302,7 +302,7 @@ struct amd_iommu {
|
||||||
bool int_enabled;
|
bool int_enabled;
|
||||||
|
|
||||||
/* if one, we need to send a completion wait command */
|
/* if one, we need to send a completion wait command */
|
||||||
int need_sync;
|
bool need_sync;
|
||||||
|
|
||||||
/* default dma_ops domain for that IOMMU */
|
/* default dma_ops domain for that IOMMU */
|
||||||
struct dma_ops_domain *default_dom;
|
struct dma_ops_domain *default_dom;
|
||||||
|
|
|
@ -198,7 +198,7 @@ static int iommu_queue_command(struct amd_iommu *iommu, struct iommu_cmd *cmd)
|
||||||
spin_lock_irqsave(&iommu->lock, flags);
|
spin_lock_irqsave(&iommu->lock, flags);
|
||||||
ret = __iommu_queue_command(iommu, cmd);
|
ret = __iommu_queue_command(iommu, cmd);
|
||||||
if (!ret)
|
if (!ret)
|
||||||
iommu->need_sync = 1;
|
iommu->need_sync = true;
|
||||||
spin_unlock_irqrestore(&iommu->lock, flags);
|
spin_unlock_irqrestore(&iommu->lock, flags);
|
||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
|
@ -263,7 +263,7 @@ static int iommu_completion_wait(struct amd_iommu *iommu)
|
||||||
|
|
||||||
ret = __iommu_completion_wait(iommu);
|
ret = __iommu_completion_wait(iommu);
|
||||||
|
|
||||||
iommu->need_sync = 0;
|
iommu->need_sync = false;
|
||||||
|
|
||||||
if (ret)
|
if (ret)
|
||||||
goto out;
|
goto out;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue