• Andi Kleen's avatar
    [PATCH] x86-64: Fix vgetcpu when CONFIG_HOTPLUG_CPU is disabled · 8c131af1
    Andi Kleen authored
    The vgetcpu per CPU initialization previously relied on CPU hotplug
    events for all CPUs to initialize the per CPU state. That only
    worked only on kernels with CONFIG_HOTPLUG_CPU enabled.  On the
    others some CPUs didn't get their state initialized properly
    and vgetcpu wouldn't work.
    
    Change the initialization sequence to instead run in a normal
    initcall (which runs after the normal CPU bootup) and initialize
    all running CPUs there. Later hotplug CPUs are still handled
    with an hotplug notifier.
    
    This actually simplifies the code somewhat.
    Signed-off-by: default avatarAndi Kleen <ak@suse.de>
    8c131af1
time.c 33.7 KB