From: Robert Richter <robert.richter@amd.com>
To: Ingo Molnar <mingo@elte.hu>, Thomas Gleixner <tglx@linutronix.de>
Cc: LKML <linux-kernel@vger.kernel.org>,
Robert Richter <robert.richter@amd.com>
Subject: [PATCH 07/11] x86/pci: mp_bus_to_node merge: moving code in amd_bus.c
Date: Wed, 2 Jul 2008 22:50:25 +0200 [thread overview]
Message-ID: <1215031829-29124-8-git-send-email-robert.richter@amd.com> (raw)
In-Reply-To: <1215031829-29124-1-git-send-email-robert.richter@amd.com>
Signed-off-by: Robert Richter <robert.richter@amd.com>
---
arch/x86/pci/amd_bus.c | 42 +++++++++++++++++++++---------------------
1 files changed, 21 insertions(+), 21 deletions(-)
diff --git a/arch/x86/pci/amd_bus.c b/arch/x86/pci/amd_bus.c
index 15f505d..aa3a190 100644
--- a/arch/x86/pci/amd_bus.c
+++ b/arch/x86/pci/amd_bus.c
@@ -14,27 +14,6 @@
* also get peer root bus resource for io,mmio
*/
-
-/*
- * sub bus (transparent) will use entres from 3 to store extra from root,
- * so need to make sure have enought slot there, increase PCI_BUS_NUM_RESOURCES?
- */
-#define RES_NUM 16
-struct pci_root_info {
- char name[12];
- unsigned int res_num;
- struct resource res[RES_NUM];
- int bus_min;
- int bus_max;
- int node;
- int link;
-};
-
-/* 4 at this time, it may become to 32 */
-#define PCI_ROOT_NR 4
-static int pci_root_num;
-static struct pci_root_info pci_root_info[PCI_ROOT_NR];
-
#ifdef CONFIG_NUMA
#define BUS_NR 256
@@ -65,8 +44,29 @@ int get_mp_bus_to_node(int busnum)
return node;
}
+
#endif
+/*
+ * sub bus (transparent) will use entres from 3 to store extra from root,
+ * so need to make sure have enought slot there, increase PCI_BUS_NUM_RESOURCES?
+ */
+#define RES_NUM 16
+struct pci_root_info {
+ char name[12];
+ unsigned int res_num;
+ struct resource res[RES_NUM];
+ int bus_min;
+ int bus_max;
+ int node;
+ int link;
+};
+
+/* 4 at this time, it may become to 32 */
+#define PCI_ROOT_NR 4
+static int pci_root_num;
+static struct pci_root_info pci_root_info[PCI_ROOT_NR];
+
void set_pci_bus_resources_arch_default(struct pci_bus *b)
{
int i;
--
1.5.5.4
next prev parent reply other threads:[~2008-07-02 21:21 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-07-02 20:50 [PATCH 0/11] x86/pci 32/64 bit merge Robert Richter
2008-07-02 20:50 ` [PATCH 01/11] x86/pci: Makefile merge: Removing Makefile_* Robert Richter
2008-07-02 20:50 ` [PATCH 02/11] x86/pci: Makefile merge: Removing include dir flag Robert Richter
2008-07-02 20:50 ` [PATCH 03/11] x86/pci: Makefile merge: Whitespace changes only Robert Richter
2008-07-02 20:50 ` [PATCH 04/11] x86/pci: Makefile merge: Decoupling options for mp_bus_to_node.o Robert Richter
2008-07-02 23:38 ` Yinghai Lu
2008-07-02 20:50 ` [PATCH 05/11] x86/pci: Makefile merge: Changing 64bit ordering Robert Richter
2008-07-02 20:50 ` [PATCH 06/11] x86/pci: Makefile merge: Creating pci-y for 64 bit Robert Richter
2008-07-02 20:50 ` Robert Richter [this message]
2008-07-02 20:50 ` [PATCH 08/11] x86/pci: merge: Moving mp_bus_to_node.c to amd_bus.c Robert Richter
2008-07-02 20:50 ` [PATCH 09/11] x86/pci: Makefile merge: Coalescing 32 and 64 bit Robert Richter
2008-07-02 20:50 ` [PATCH 10/11] x86/pci: visws: Renaming pcibios_init() Robert Richter
2008-07-02 20:50 ` [PATCH 11/11] x86/pci: Removing subsys_initcall ordering dependencies Robert Richter
2008-07-03 19:19 ` [PATCH 0/11] x86/pci 32/64 bit merge Jesse Barnes
2008-07-04 15:39 ` Robert Richter
2008-07-09 9:41 ` 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=1215031829-29124-8-git-send-email-robert.richter@amd.com \
--to=robert.richter@amd.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@elte.hu \
--cc=rrichter@elbe.amd.com \
--cc=tglx@linutronix.de \
/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