Jelajahi Sumber

x86 gart: remove unnecessary set_bit_string

iommu_area_alloc internally calls set_bit_string and set bits
properly. This set_bit_string is unnecessary.

Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Cc: joerg.roedel@amd.com
Signed-off-by: Ingo Molnar <mingo@elte.hu>
FUJITA Tomonori 17 tahun lalu
induk
melakukan
44974c8fc1
1 mengubah file dengan 0 tambahan dan 1 penghapusan
  1. 0 1
      arch/x86/kernel/pci-gart_64.c

+ 0 - 1
arch/x86/kernel/pci-gart_64.c

@@ -104,7 +104,6 @@ static unsigned long alloc_iommu(struct device *dev, int size)
 					  size, base_index, boundary_size, 0);
 	}
 	if (offset != -1) {
-		set_bit_string(iommu_gart_bitmap, offset, size);
 		next_bit = offset+size;
 		if (next_bit >= iommu_pages) {
 			next_bit = 0;