[PATCH] x86_64: Fix CONFIG_IOMMU_DEBUG

If CONFIG_IOMMU_DEBUG is set force_iommu defaults to 1. In the case
where no HW IOMMU is present in the machine and we end up using nommu,
leaving force_iommu set to 1 causes dma_alloc_coherent to do the wrong
thing. Therefore, if we end up using nommu, make sure force_iommu is
0.

Signed-off-by: Muli Ben-Yehuda <muli@il.ibm.com>
Signed-off-by: Andi Kleen <ak@suse.de>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>

authored by Muli Ben-Yehuda and committed by Linus Torvalds a166222c 2699500b

+2
+2
arch/x86_64/kernel/pci-nommu.c
··· 92 92 { 93 93 if (dma_ops) 94 94 return; 95 + 96 + force_iommu = 0; /* no HW IOMMU */ 95 97 dma_ops = &nommu_dma_ops; 96 98 }