Commit c7b42d9a authored by Dave Jones's avatar Dave Jones

[AGPGART] Handle multiple AMD64 AGP bridges correctly on UP.

We only care about the first bridge in UP, but we still tried to continue..
parent ebf7c862
...@@ -357,11 +357,18 @@ static __init int cache_nbs (struct pci_dev *pdev, u32 cap_ptr) ...@@ -357,11 +357,18 @@ static __init int cache_nbs (struct pci_dev *pdev, u32 cap_ptr)
} }
hammers[i++] = loop_dev; hammers[i++] = loop_dev;
nr_garts = i; nr_garts = i;
#ifdef CONFIG_SMP
if (i == MAX_HAMMER_GARTS) { if (i == MAX_HAMMER_GARTS) {
printk(KERN_INFO PFX "Too many northbridges for AGP\n"); printk(KERN_INFO PFX "Too many northbridges for AGP\n");
return -1; return -1;
} }
#else
/* Uniprocessor case, return after finding first bridge.
(There may be more, but in UP, we don't care). */
return 0;
#endif
} }
return i == 0 ? -1 : 0; return i == 0 ? -1 : 0;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment