From: Yinghai Lu <yhlu.kernel.send@gmail.com>
To: "Rafael J. Wysocki" <rjw@sisk.pl>, Ingo Molnar <mingo@elte.hu>
Cc: kernel list <linux-kernel@vger.kernel.org>
Subject: [PATCH] x86_64: don't need set default res if only have one root bus
Date: Fri, 11 Apr 2008 15:14:52 -0700 [thread overview]
Message-ID: <200804111514.53680.yhlu.kernel@gmail.com> (raw)
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++) {
next reply other threads:[~2008-04-11 22:11 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-04-11 22:14 Yinghai Lu [this message]
2008-04-11 22:54 ` Rafael J. Wysocki
2008-04-13 7:47 ` Ingo Molnar
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200804111514.53680.yhlu.kernel@gmail.com \
--to=yhlu.kernel.send@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@elte.hu \
--cc=rjw@sisk.pl \
--cc=yhlu.kernel@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®