login
Header Space

 
 

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

Previous thread: 2.6.25-rc9: hda: task_no_data_intr: error=0x04 by Miguel Ojeda on Friday, April 11, 2008 - 5:45 pm. (1 message)

Next thread: [RFC] Patch to add private notification data to block notifier. by mark gross on Friday, April 11, 2008 - 7:05 pm. (1 message)
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 &lt;yhlu.kernel@gmail.com&gt;

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 &lt; 2)
 		return;
 
 	for (i = 0; i &lt; pci_root_num; i++) {
--
To: <yhlu.kernel@...>
Cc: Ingo Molnar <mingo@...>, kernel list <linux-kernel@...>, Andrew Morton <akpm@...>
Date: Friday, April 11, 2008 - 6:54 pm

This patch fixes the issue described at


Thanks,
Rafael
--
To: Rafael J. Wysocki <rjw@...>
Cc: <yhlu.kernel@...>, kernel list <linux-kernel@...>, Andrew Morton <akpm@...>
Date: Sunday, April 13, 2008 - 3:47 am

thanks - applied.

	Ingo
--
Previous thread: 2.6.25-rc9: hda: task_no_data_intr: error=0x04 by Miguel Ojeda on Friday, April 11, 2008 - 5:45 pm. (1 message)

Next thread: [RFC] Patch to add private notification data to block notifier. by mark gross on Friday, April 11, 2008 - 7:05 pm. (1 message)
speck-geostationary