• Brian Gerst's avatar
    x86-64: Convert irqstacks to per-cpu · 26f80bd6
    Brian Gerst authored
    Move the irqstackptr variable from the PDA to per-cpu.  Make the
    stacks themselves per-cpu, removing some specific allocation code.
    Add a seperate flag (is_boot_cpu) to simplify the per-cpu boot
    adjustments.
    
    tj: * sprinkle some underbars around.
    
        * irq_stack_ptr is not used till traps_init(), no reason to
          initialize it early.  On SMP, just leaving it NULL till proper
          initialization in setup_per_cpu_areas() works.  Dropped
          is_boot_cpu and early irq_stack_ptr initialization.
    
        * do DECLARE/DEFINE_PER_CPU(char[IRQ_STACK_SIZE], irq_stack)
          instead of (char, irq_stack[IRQ_STACK_SIZE]).
    Signed-off-by: default avatarBrian Gerst <brgerst@gmail.com>
    Signed-off-by: default avatarTejun Heo <tj@kernel.org>
    26f80bd6
processor.h 22.7 KB