|
|
|
|
|
|
|
|
|
|
xen-ia64-devel
[Xen-ia64-devel] [rfc 02/16] statically allocate xen_phys_cpus
On IA64 alloc_bootmem_low() can't be called this early.
Before alloc_bootmem_low() can be called init_bootmem(), which is called in
find_memory(). However xen_machine_kexec_setup_resources() is indirectly
called earlier on in find_memory().
Signed-off-by: Simon Horman <horms@xxxxxxxxxxxx>
Index: x/drivers/xen/core/machine_kexec.c
===================================================================
--- x/drivers/xen/core/machine_kexec.c 2007-05-11 18:19:20.000000000 +0900
+++ x/drivers/xen/core/machine_kexec.c 2007-05-14 19:18:03.000000000 +0900
@@ -13,7 +13,7 @@ extern void machine_kexec_setup_load_arg
static int __initdata xen_max_nr_phys_cpus;
static struct resource xen_hypervisor_res;
-static struct resource *xen_phys_cpus;
+static struct resource xen_phys_cpus[NR_CPUS];
void __init xen_machine_kexec_setup_resources(void)
{
@@ -42,11 +42,6 @@ void xen_machine_kexec_setup_resources(v
xen_max_nr_phys_cpus = k;
- /* allocate xen_phys_cpus */
-
- xen_phys_cpus = alloc_bootmem_low(k * sizeof(struct resource));
- BUG_ON(xen_phys_cpus == NULL);
-
/* fill in xen_phys_cpus with per-cpu crash note information */
for (k = 0; k < xen_max_nr_phys_cpus; k++) {
--
--
Horms
H: http://www.vergenet.net/~horms/
W: http://www.valinux.co.jp/en/
_______________________________________________
Xen-ia64-devel mailing list
Xen-ia64-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-ia64-devel
|
<Prev in Thread] |
Current Thread |
[Next in Thread>
|
- [Xen-ia64-devel] [rfc 00/16] Kexec v20070717: Linux-Xen, Simon Horman
- [Xen-ia64-devel] [rfc 03/16] Initialise xen_start_info earlier in setup_arch(), Simon Horman
- [Xen-ia64-devel] [rfc 02/16] statically allocate xen_phys_cpus,
Simon Horman <=
- [Xen-ia64-devel] [rfc 09/16] Update default config to enable kexec, Simon Horman
- [Xen-ia64-devel] [rfc 04/16] IA64 Kexec/kdump, Simon Horman
- [Xen-ia64-devel] [rfc 06/16] Kexec/Kdump: honour non-zero crashkernel offset, Simon Horman
- [Xen-ia64-devel] [rfc 01/16] sysctl: implement CTL_UNNUMBERED, Simon Horman
- [Xen-ia64-devel] [rfc 07/16] Kexec: Call xen_machine_kexec_register_resources, Simon Horman
- [Xen-ia64-devel] [rfc 08/16] kexec/kdump: Minor enhancement to includes in crash.c, Simon Horman
- [Xen-ia64-devel] [rfc 05/16] CONFIG_KEXEC/CONFIG_CRASH_DUMP permutations, Simon Horman
- [Xen-ia64-devel] [rfc 11/16] Date: Thu, 12 Jul 2007 15:50:37 +0900 Subkect: Kexec: machine addresss macros From: Simon Horman <horms@xxxxxxxxxxxx>, Simon Horman
- [Xen-ia64-devel] [rfc 14/16] Kdump: Add /proc/iomem_machine, Simon Horman
- [Xen-ia64-devel] [rfc 15/16] Kexec: Purge the VHPT entry in the TLB on kexec, Simon Horman
|
|
|
|
|