[PATCH] x86_64: don't need set default res if only have one root bus

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Rafael J. Wysocki <rjw@...>, Ingo Molnar <mingo@...>
Cc: kernel list <linux-kernel@...>
Date: Friday, April 11, 2008 - 6:14 pm

only one root bus, don't need to split that root resources.

Signed-off-by: Yinghai Lu <yhlu.kernel@gmail.com>

diff --git a/arch/x86/pci/k8-bus_64.c b/arch/x86/pci/k8-bus_64.c
index 7ed7f51..c433982 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++) {
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH] x86_64: don't need set default res if only have one ..., Yinghai Lu, (Fri Apr 11, 6:14 pm)
Re: [PATCH] x86_64: don't need set default res if only have ..., Rafael J. Wysocki, (Fri Apr 11, 6:54 pm)