x86: make irqinit_32.c more like irqinit_64.c, v2
authorYinghai Lu <yinghai@kernel.org>
Sun, 25 Jan 2009 10:38:09 +0000 (02:38 -0800)
committerIngo Molnar <mingo@elte.hu>
Mon, 26 Jan 2009 22:37:11 +0000 (23:37 +0100)
commitbb3f0b59ad005d2d2ecbbe9bd048eab6d1ecbd31
treefd503e9a65bd77601cea99a892a031c6ba086fd8
parent3415dd9146c574bffe8f012c096bfc2bc62b9508
x86: make irqinit_32.c more like irqinit_64.c, v2

Impact: cleanup

1. add smp_intr_init and apic_intr_init for 32bit, the same as 64bit
2. move the apic_intr_init() call before set gate with interrupt[i]
3. for 64bit, if ia32_emulation is not used, will make per_cpu to use 0x80 vector.

[ v2: should use !test_bit() instead of test_bit() with 32bit ]

Signed-off-by: Yinghai Lu <yinghai@kernel.org>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/kernel/irqinit_32.c
arch/x86/kernel/irqinit_64.c
arch/x86/kernel/traps.c