From: Joerg Roedel Date: Thu, 3 Jul 2008 17:35:07 +0000 (+0200) Subject: x86, AMD IOMMU: remove unnecessary set_bit_string X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=5f6a59d8ad55781d4d2ff0d327f84aaeed2c4127;p=openwrt%2Fstaging%2Fblogic.git x86, AMD IOMMU: remove unnecessary set_bit_string The set_bit_string call in the address allocator is not necessary because its already called in iommu_area_alloc(). Signed-off-by: Joerg Roedel Cc: iommu@lists.linux-foundation.org Cc: bhavna.sarathy@amd.com Cc: robert.richter@amd.com Cc: Joerg Roedel Signed-off-by: Ingo Molnar --- diff --git a/arch/x86/kernel/amd_iommu.c b/arch/x86/kernel/amd_iommu.c index a1b38561d347..329b2c3f2fed 100644 --- a/arch/x86/kernel/amd_iommu.c +++ b/arch/x86/kernel/amd_iommu.c @@ -301,7 +301,6 @@ static unsigned long dma_ops_alloc_addresses(struct device *dev, 0, boundary_size, 0); if (likely(address != -1)) { - set_bit_string(dom->bitmap, address, pages); dom->next_bit = address + pages; address <<= PAGE_SHIFT; } else