diff options
author | Joerg Roedel <joerg.roedel@amd.com> | 2008-12-10 13:58:00 -0500 |
---|---|---|
committer | Joerg Roedel <joerg.roedel@amd.com> | 2009-01-03 08:11:57 -0500 |
commit | 0cfd7aa90be83a4d278810d231f9ef03f189b4f0 (patch) | |
tree | 28151dc0607770460c563553f89c8c4d58908bd9 /arch/x86 | |
parent | ab896722867602eb0e836717e8b857ad513800d8 (diff) |
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')
-rw-r--r-- | arch/x86/include/asm/amd_iommu_types.h | 2 | ||||
-rw-r--r-- | arch/x86/kernel/amd_iommu.c | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/arch/x86/include/asm/amd_iommu_types.h b/arch/x86/include/asm/amd_iommu_types.h index ee8cfa00017d..c4b144ece1f8 100644 --- a/arch/x86/include/asm/amd_iommu_types.h +++ b/arch/x86/include/asm/amd_iommu_types.h | |||
@@ -302,7 +302,7 @@ struct amd_iommu { | |||
302 | bool int_enabled; | 302 | bool int_enabled; |
303 | 303 | ||
304 | /* if one, we need to send a completion wait command */ | 304 | /* if one, we need to send a completion wait command */ |
305 | int need_sync; | 305 | bool need_sync; |
306 | 306 | ||
307 | /* default dma_ops domain for that IOMMU */ | 307 | /* default dma_ops domain for that IOMMU */ |
308 | struct dma_ops_domain *default_dom; | 308 | struct dma_ops_domain *default_dom; |
diff --git a/arch/x86/kernel/amd_iommu.c b/arch/x86/kernel/amd_iommu.c index a53cf48d3be8..e410e97e5b0a 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) | |||
198 | spin_lock_irqsave(&iommu->lock, flags); | 198 | spin_lock_irqsave(&iommu->lock, flags); |
199 | ret = __iommu_queue_command(iommu, cmd); | 199 | ret = __iommu_queue_command(iommu, cmd); |
200 | if (!ret) | 200 | if (!ret) |
201 | iommu->need_sync = 1; | 201 | iommu->need_sync = true; |
202 | spin_unlock_irqrestore(&iommu->lock, flags); | 202 | spin_unlock_irqrestore(&iommu->lock, flags); |
203 | 203 | ||
204 | return ret; | 204 | return ret; |
@@ -263,7 +263,7 @@ static int iommu_completion_wait(struct amd_iommu *iommu) | |||
263 | 263 | ||
264 | ret = __iommu_completion_wait(iommu); | 264 | ret = __iommu_completion_wait(iommu); |
265 | 265 | ||
266 | iommu->need_sync = 0; | 266 | iommu->need_sync = false; |
267 | 267 | ||
268 | if (ret) | 268 | if (ret) |
269 | goto out; | 269 | goto out; |