diff options
author | Joerg Roedel <joerg.roedel@amd.com> | 2008-12-10 19:58:00 +0100 |
---|---|---|
committer | Joerg Roedel <joerg.roedel@amd.com> | 2009-01-03 14:11:57 +0100 |
commit | 0cfd7aa90be83a4d278810d231f9ef03f189b4f0 (patch) | |
tree | 28151dc0607770460c563553f89c8c4d58908bd9 /arch/x86/kernel/amd_iommu.c | |
parent | ab896722867602eb0e836717e8b857ad513800d8 (diff) | |
download | op-kernel-dev-0cfd7aa90be83a4d278810d231f9ef03f189b4f0.zip op-kernel-dev-0cfd7aa90be83a4d278810d231f9ef03f189b4f0.tar.gz |
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>
Diffstat (limited to 'arch/x86/kernel/amd_iommu.c')
-rw-r--r-- | arch/x86/kernel/amd_iommu.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/x86/kernel/amd_iommu.c b/arch/x86/kernel/amd_iommu.c index a53cf48..e410e97 100644 --- a/arch/x86/kernel/amd_iommu.c +++ b/arch/x86/kernel/amd_iommu.c @@ -198,7 +198,7 @@ static int iommu_queue_command(struct amd_iommu *iommu, struct iommu_cmd *cmd) spin_lock_irqsave(&iommu->lock, flags); ret = __iommu_queue_command(iommu, cmd); if (!ret) - iommu->need_sync = 1; + iommu->need_sync = true; spin_unlock_irqrestore(&iommu->lock, flags); return ret; @@ -263,7 +263,7 @@ static int iommu_completion_wait(struct amd_iommu *iommu) ret = __iommu_completion_wait(iommu); - iommu->need_sync = 0; + iommu->need_sync = false; if (ret) goto out; |