]> git.karo-electronics.de Git - linux-beck.git/commit
x86-64: Convert irqstacks to per-cpu
authorBrian Gerst <brgerst@gmail.com>
Sun, 18 Jan 2009 15:38:58 +0000 (00:38 +0900)
committerTejun Heo <tj@kernel.org>
Sun, 18 Jan 2009 15:38:58 +0000 (00:38 +0900)
commit26f80bd6a9ab17bc8a60b6092e7c0d05c5927ce5
tree7456ba479397c986337b2bb9574a74710fddbdee
parent9eb912d1aa6b8106e06a73ea6702ec3dab0d6a1a
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>
arch/x86/include/asm/page_64.h
arch/x86/include/asm/pda.h
arch/x86/include/asm/processor.h
arch/x86/kernel/asm-offsets_64.c
arch/x86/kernel/cpu/common.c
arch/x86/kernel/dumpstack_64.c
arch/x86/kernel/entry_64.S
arch/x86/kernel/setup_percpu.c