-
- Downloads
x86-64: Convert irqstacks to per-cpu
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:Brian Gerst <brgerst@gmail.com> Signed-off-by:
Tejun Heo <tj@kernel.org>
Showing
- arch/x86/include/asm/page_64.h 2 additions, 2 deletionsarch/x86/include/asm/page_64.h
- arch/x86/include/asm/pda.h 0 additions, 1 deletionarch/x86/include/asm/pda.h
- arch/x86/include/asm/processor.h 3 additions, 0 deletionsarch/x86/include/asm/processor.h
- arch/x86/kernel/asm-offsets_64.c 0 additions, 1 deletionarch/x86/kernel/asm-offsets_64.c
- arch/x86/kernel/cpu/common.c 7 additions, 12 deletionsarch/x86/kernel/cpu/common.c
- arch/x86/kernel/dumpstack_64.c 17 additions, 16 deletionsarch/x86/kernel/dumpstack_64.c
- arch/x86/kernel/entry_64.S 3 additions, 3 deletionsarch/x86/kernel/entry_64.S
- arch/x86/kernel/setup_percpu.c 3 additions, 1 deletionarch/x86/kernel/setup_percpu.c
Loading
Please register or sign in to comment