Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 112625
b: refs/heads/master
c: 3610f21
h: refs/heads/master
i:
  112623: 786d700
v: v3
  • Loading branch information
Joerg Roedel authored and Ingo Molnar committed Sep 27, 2008
1 parent b742d99 commit 5ee72e5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 237a62247c2879331986a300d6ab36ad21264c68
refs/heads/master: 3610f2116e961cdcbd3546a3828470f7aa636212
10 changes: 5 additions & 5 deletions trunk/arch/x86/kernel/pci-gart_64.c
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ AGPEXTERN int agp_memory_reserved;
AGPEXTERN __u32 *agp_gatt_table;

static unsigned long next_bit; /* protected by iommu_bitmap_lock */
static int need_flush; /* global flush state. set for each gart wrap */
static bool need_flush; /* global flush state. set for each gart wrap */

static unsigned long alloc_iommu(struct device *dev, int size,
unsigned long align_mask)
Expand All @@ -98,7 +98,7 @@ static unsigned long alloc_iommu(struct device *dev, int size,
offset = iommu_area_alloc(iommu_gart_bitmap, iommu_pages, next_bit,
size, base_index, boundary_size, align_mask);
if (offset == -1) {
need_flush = 1;
need_flush = true;
offset = iommu_area_alloc(iommu_gart_bitmap, iommu_pages, 0,
size, base_index, boundary_size,
align_mask);
Expand All @@ -107,11 +107,11 @@ static unsigned long alloc_iommu(struct device *dev, int size,
next_bit = offset+size;
if (next_bit >= iommu_pages) {
next_bit = 0;
need_flush = 1;
need_flush = true;
}
}
if (iommu_fullflush)
need_flush = 1;
need_flush = true;
spin_unlock_irqrestore(&iommu_bitmap_lock, flags);

return offset;
Expand All @@ -136,7 +136,7 @@ static void flush_gart(void)
spin_lock_irqsave(&iommu_bitmap_lock, flags);
if (need_flush) {
k8_flush_garts();
need_flush = 0;
need_flush = false;
}
spin_unlock_irqrestore(&iommu_bitmap_lock, flags);
}
Expand Down

0 comments on commit 5ee72e5

Please sign in to comment.