From: Yinghai Lu Date: Fri, 11 Apr 2008 22:14:52 +0000 (-0700) Subject: x86_64: don't need set default res if only have one root bus X-Git-Tag: v2.6.26-rc1~369^2~3 X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=4cf19463745fad81ef2eed3e4e0038da5fd153f8;p=~emulex%2Finfiniband.git 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 Tested-by: Rafael J. Wysocki Signed-off-by: Yinghai Lu Signed-off-by: Ingo Molnar Signed-off-by: Thomas Gleixner --- diff --git a/arch/x86/pci/k8-bus_64.c b/arch/x86/pci/k8-bus_64.c index 84b2030fc2f..4e64c58e17a 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) int j; struct pci_root_info *info; - if (!pci_root_num) + /* if only one root bus, don't need to anything */ + if (pci_root_num < 2) return; for (i = 0; i < pci_root_num; i++) {