diff options
author | Shaohua Li <shaohua.li@intel.com> | 2011-01-16 21:52:05 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2011-02-14 07:03:08 -0500 |
commit | 3a09fb4570a1cce11472b8e5da3f6ee409f529d5 (patch) | |
tree | 494c47eea548eb03465278467877ab2b64057883 /arch/x86/kernel/entry_64.S | |
parent | 60f6e65d7887c257392313755f95540ef5e7ea89 (diff) |
x86: Allocate 32 tlb_invalidate_interrupt handler stubs
Add up to 32 invalidate_interrupt handlers. How many handlers are
added depends on NUM_INVALIDATE_TLB_VECTORS. So if
NUM_INVALIDATE_TLB_VECTORS is smaller than 32, we reduce code
size.
Signed-off-by: Shaohua Li <shaohua.li@intel.com>
Cc: Andi Kleen <andi@firstfloor.org>
Cc: Eric Dumazet <eric.dumazet@gmail.com>
LKML-Reference: <1295232725.1949.708.camel@sli10-conroe>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/x86/kernel/entry_64.S')
-rw-r--r-- | arch/x86/kernel/entry_64.S | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/arch/x86/kernel/entry_64.S b/arch/x86/kernel/entry_64.S index aed1ffbeb0c..891268c645e 100644 --- a/arch/x86/kernel/entry_64.S +++ b/arch/x86/kernel/entry_64.S | |||
@@ -975,9 +975,12 @@ apicinterrupt X86_PLATFORM_IPI_VECTOR \ | |||
975 | x86_platform_ipi smp_x86_platform_ipi | 975 | x86_platform_ipi smp_x86_platform_ipi |
976 | 976 | ||
977 | #ifdef CONFIG_SMP | 977 | #ifdef CONFIG_SMP |
978 | .irpc idx, "01234567" | 978 | .irp idx,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15, \ |
979 | 16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31 | ||
980 | .if NUM_INVALIDATE_TLB_VECTORS > \idx | ||
979 | apicinterrupt (INVALIDATE_TLB_VECTOR_START)+\idx \ | 981 | apicinterrupt (INVALIDATE_TLB_VECTOR_START)+\idx \ |
980 | invalidate_interrupt\idx smp_invalidate_interrupt | 982 | invalidate_interrupt\idx smp_invalidate_interrupt |
983 | .endif | ||
981 | .endr | 984 | .endr |
982 | #endif | 985 | #endif |
983 | 986 | ||