ia64/xen-unstable

changeset 13951:376940a942e9

[POWERPC][XEN] Fix RCU crash.
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
author Hollis Blanchard <hollisb@us.ibm.com>
date Fri Feb 09 14:43:21 2007 -0600 (2007-02-09)
parents 272291dacad4
children 1b74475ad511
files xen/arch/powerpc/setup.c
line diff
     1.1 --- a/xen/arch/powerpc/setup.c	Fri Feb 09 14:43:21 2007 -0600
     1.2 +++ b/xen/arch/powerpc/setup.c	Fri Feb 09 14:43:21 2007 -0600
     1.3 @@ -36,6 +36,7 @@
     1.4  #include <xen/symbols.h>
     1.5  #include <xen/keyhandler.h>
     1.6  #include <xen/numa.h>
     1.7 +#include <xen/rcupdate.h>
     1.8  #include <acm/acm_hooks.h>
     1.9  #include <public/version.h>
    1.10  #include <asm/mpic.h>
    1.11 @@ -176,6 +177,7 @@ static void __init start_of_day(void)
    1.12      register_keyhandler('D', key_ofdump , "Dump OF Devtree");
    1.13  
    1.14      timer_init();
    1.15 +    rcu_init();
    1.16      serial_init_postirq();
    1.17      do_initcalls();
    1.18  }
    1.19 @@ -241,6 +243,8 @@ static int kick_secondary_cpus(int maxcp
    1.20          /* For now everything is single core */
    1.21          cpu_set(cpuid, cpu_core_map[cpuid]);
    1.22  
    1.23 +        rcu_online_cpu(cpuid);
    1.24 +
    1.25          numa_set_node(cpuid, 0);
    1.26          numa_add_cpu(cpuid);
    1.27