aboutsummaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorYinghai Lu <yhlu.kernel.send@gmail.com>2008-04-11 18:14:52 -0400
committerIngo Molnar <mingo@elte.hu>2008-04-26 17:41:04 -0400
commit4cf19463745fad81ef2eed3e4e0038da5fd153f8 (patch)
tree8a840b0366a3d7a4881832efeeab06287fa55832 /arch
parent6e184f299d696203bc40545b9db216089d88bef7 (diff)
x86_64: don't need set default res if only have one root bus
if there's only one root bus there's no need to split resources. This patch fixes the issue described at: http://lkml.org/lkml/2008/4/10/304 Reported-and-bisected-by: Rafael J. Wysocki <rjw@sisk.pl> Tested-by: Rafael J. Wysocki <rjw@sisk.pl> Signed-off-by: Yinghai Lu <yhlu.kernel@gmail.com> Signed-off-by: Ingo Molnar <mingo@elte.hu> Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'arch')
-rw-r--r--arch/x86/pci/k8-bus_64.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/x86/pci/k8-bus_64.c b/arch/x86/pci/k8-bus_64.c
index 84b2030fc2f0..4e64c58e17a0 100644
--- a/arch/x86/pci/k8-bus_64.c
+++ b/arch/x86/pci/k8-bus_64.c
@@ -69,7 +69,8 @@ void set_pci_bus_resources_arch_default(struct pci_bus *b)
69 int j; 69 int j;
70 struct pci_root_info *info; 70 struct pci_root_info *info;
71 71
72 if (!pci_root_num) 72 /* if only one root bus, don't need to anything */
73 if (pci_root_num < 2)
73 return; 74 return;
74 75
75 for (i = 0; i < pci_root_num; i++) { 76 for (i = 0; i < pci_root_num; i++) {