From dc4306a37ebf70de85010d7bde7451a7f13f9ad1 Mon Sep 17 00:00:00 2001 From: Joerg Roedel Date: Wed, 10 Dec 2008 19:58:00 +0100 Subject: [PATCH] --- yaml --- r: 125623 b: refs/heads/master c: 0cfd7aa90be83a4d278810d231f9ef03f189b4f0 h: refs/heads/master i: 125621: 4301a81515176caa11528914a89b4dfc2773119e 125619: d8ae37bdb68c75c4fd195dba6d17489fc8a07ad6 125615: 5cf5466110a46d7d75f18a74daf0b18396f5008a v: v3 --- [refs] | 2 +- trunk/arch/x86/include/asm/amd_iommu_types.h | 2 +- trunk/arch/x86/kernel/amd_iommu.c | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/[refs] b/[refs] index 28dba46eebbb..20d2fa7dff64 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: ab896722867602eb0e836717e8b857ad513800d8 +refs/heads/master: 0cfd7aa90be83a4d278810d231f9ef03f189b4f0 diff --git a/trunk/arch/x86/include/asm/amd_iommu_types.h b/trunk/arch/x86/include/asm/amd_iommu_types.h index ee8cfa00017d..c4b144ece1f8 100644 --- a/trunk/arch/x86/include/asm/amd_iommu_types.h +++ b/trunk/arch/x86/include/asm/amd_iommu_types.h @@ -302,7 +302,7 @@ struct amd_iommu { bool int_enabled; /* if one, we need to send a completion wait command */ - int need_sync; + bool need_sync; /* default dma_ops domain for that IOMMU */ struct dma_ops_domain *default_dom; diff --git a/trunk/arch/x86/kernel/amd_iommu.c b/trunk/arch/x86/kernel/amd_iommu.c index a53cf48d3be8..e410e97e5b0a 100644 --- a/trunk/arch/x86/kernel/amd_iommu.c +++ b/trunk/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;