|
|
|
|
|
|
|
|
|
|
xen-ppc-devel
[XenPPC] [linux-ppc-2.6] [LINUX][XEN][POWERPC] use is_initial_xendomain(
# HG changeset patch
# User Jimi Xenidis <jimix@xxxxxxxxxxxxxx>
# Node ID c2f25eb27f246a16df21367fad993ee91732f680
# Parent de401e010c25cc59af09ac4522a200b65e4faf5f
[LINUX][XEN][POWERPC] use is_initial_xendomain()
Signed-off-by: Jimi Xenidis <jimix@xxxxxxxxxxxxxx>
---
arch/powerpc/platforms/xen/setup.c | 7 ++-----
1 files changed, 2 insertions(+), 5 deletions(-)
diff -r de401e010c25 -r c2f25eb27f24 arch/powerpc/platforms/xen/setup.c
--- a/arch/powerpc/platforms/xen/setup.c Wed Oct 04 14:12:00 2006 -0400
+++ b/arch/powerpc/platforms/xen/setup.c Sat Oct 07 17:57:56 2006 -0400
@@ -34,7 +34,6 @@ EXPORT_SYMBOL(HYPERVISOR_shared_info);
/* Raw start-of-day parameters from the hypervisor. */
start_info_t *xen_start_info;
-static int is_dom0;
extern struct machdep_calls mach_maple_md;
extern void maple_pci_init(void);
@@ -111,9 +110,7 @@ static void __init xen_init_early(void)
DBG(" console_mfn %llx\n", xen_start_info->console.domU.mfn);
DBG(" console_evtchn %x\n", xen_start_info->console.domU.evtchn);
- is_dom0 = !!(xen_start_info->flags & SIF_INITDOMAIN);
-
- if (is_dom0) {
+ if (is_initial_xendomain()) {
ppc_md.pcibios_fixup = mach_maple_md.pcibios_fixup;
ppc_md.pci_get_legacy_ide_irq =
mach_maple_md.pci_get_legacy_ide_irq;
ppc_md.get_boot_time = mach_maple_md.get_boot_time;
@@ -225,7 +222,7 @@ void __init xen_setup_arch(void)
#endif
/* Lookup PCI hosts */
- if (is_dom0)
+ if (is_initial_xendomain())
maple_pci_init();
#ifdef CONFIG_DUMMY_CONSOLE
_______________________________________________
Xen-ppc-devel mailing list
Xen-ppc-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-ppc-devel
|
<Prev in Thread] |
Current Thread |
[Next in Thread> |
- [XenPPC] [linux-ppc-2.6] [LINUX][XEN][POWERPC] use is_initial_xendomain(),
Xen patchbot-linux-ppc-2 . 6 <=
|
|
|
|
|