Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 14206
b: refs/heads/master
c: 1d2e6bd
h: refs/heads/master
v: v3
  • Loading branch information
Andi Kleen authored and Linus Torvalds committed Nov 15, 2005
1 parent 2f64908 commit 177502f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 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: 172efbb40333d0ca10ebaab11a98f9be687bee39
refs/heads/master: 1d2e6bd86152ab86fb866555281869df340e6c6a
5 changes: 3 additions & 2 deletions trunk/drivers/char/agp/amd64-agp.c
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@ static struct pci_dev * hammers[MAX_HAMMER_GARTS];
static struct resource *aperture_resource;
static int __initdata agp_try_unsupported = 1;

static int gart_iterator;
#define for_each_nb() for(gart_iterator=0;gart_iterator<nr_garts;gart_iterator++)

static void flush_amd64_tlb(struct pci_dev *dev)
Expand All @@ -72,6 +71,7 @@ static void flush_amd64_tlb(struct pci_dev *dev)

static void amd64_tlbflush(struct agp_memory *temp)
{
int gart_iterator;
for_each_nb()
flush_amd64_tlb(hammers[gart_iterator]);
}
Expand Down Expand Up @@ -221,6 +221,7 @@ static struct aper_size_info_32 amd_8151_sizes[7] =
static int amd_8151_configure(void)
{
unsigned long gatt_bus = virt_to_gart(agp_bridge->gatt_table_real);
int gart_iterator;

/* Configure AGP regs in each x86-64 host bridge. */
for_each_nb() {
Expand All @@ -234,7 +235,7 @@ static int amd_8151_configure(void)
static void amd64_cleanup(void)
{
u32 tmp;

int gart_iterator;
for_each_nb() {
/* disable gart translation */
pci_read_config_dword (hammers[gart_iterator], AMD64_GARTAPERTURECTL, &tmp);
Expand Down

0 comments on commit 177502f

Please sign in to comment.