Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1 | /* |
| 2 | * This file is designed to contain the BUILD_INTERRUPT specifications for |
| 3 | * all of the extra named interrupt vectors used by the architecture. |
| 4 | * Usually this is the Inter Process Interrupts (IPIs) |
| 5 | */ |
| 6 | |
| 7 | /* |
| 8 | * The following vectors are part of the Linux architecture, there |
| 9 | * is no hardware IRQ pin equivalent for them, they are triggered |
| 10 | * through the ICC by us (IPIs) |
| 11 | */ |
| 12 | #ifdef CONFIG_X86_SMP |
| 13 | BUILD_INTERRUPT(reschedule_interrupt,RESCHEDULE_VECTOR) |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 14 | BUILD_INTERRUPT(call_function_interrupt,CALL_FUNCTION_VECTOR) |
Jens Axboe | 3b16cf8 | 2008-06-26 11:21:54 +0200 | [diff] [blame] | 15 | BUILD_INTERRUPT(call_function_single_interrupt,CALL_FUNCTION_SINGLE_VECTOR) |
Yinghai Lu | 497c9a1 | 2008-08-19 20:50:28 -0700 | [diff] [blame] | 16 | BUILD_INTERRUPT(irq_move_cleanup_interrupt,IRQ_MOVE_CLEANUP_VECTOR) |
Tejun Heo | 02cf94c | 2009-01-21 17:26:06 +0900 | [diff] [blame] | 17 | |
| 18 | BUILD_INTERRUPT3(invalidate_interrupt0,INVALIDATE_TLB_VECTOR_START+0, |
| 19 | smp_invalidate_interrupt) |
| 20 | BUILD_INTERRUPT3(invalidate_interrupt1,INVALIDATE_TLB_VECTOR_START+1, |
| 21 | smp_invalidate_interrupt) |
| 22 | BUILD_INTERRUPT3(invalidate_interrupt2,INVALIDATE_TLB_VECTOR_START+2, |
| 23 | smp_invalidate_interrupt) |
| 24 | BUILD_INTERRUPT3(invalidate_interrupt3,INVALIDATE_TLB_VECTOR_START+3, |
| 25 | smp_invalidate_interrupt) |
| 26 | BUILD_INTERRUPT3(invalidate_interrupt4,INVALIDATE_TLB_VECTOR_START+4, |
| 27 | smp_invalidate_interrupt) |
| 28 | BUILD_INTERRUPT3(invalidate_interrupt5,INVALIDATE_TLB_VECTOR_START+5, |
| 29 | smp_invalidate_interrupt) |
| 30 | BUILD_INTERRUPT3(invalidate_interrupt6,INVALIDATE_TLB_VECTOR_START+6, |
| 31 | smp_invalidate_interrupt) |
| 32 | BUILD_INTERRUPT3(invalidate_interrupt7,INVALIDATE_TLB_VECTOR_START+7, |
| 33 | smp_invalidate_interrupt) |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 34 | #endif |
| 35 | |
| 36 | /* |
| 37 | * every pentium local APIC has two 'local interrupts', with a |
| 38 | * soft-definable vector attached to both interrupts, one of |
| 39 | * which is a timer interrupt, the other one is error counter |
| 40 | * overflow. Linux uses the local APIC timer interrupt to get |
| 41 | * a much simpler SMP time architecture: |
| 42 | */ |
| 43 | #ifdef CONFIG_X86_LOCAL_APIC |
Ingo Molnar | 1164dd0 | 2009-01-28 19:34:09 +0100 | [diff] [blame^] | 44 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 45 | BUILD_INTERRUPT(apic_timer_interrupt,LOCAL_TIMER_VECTOR) |
| 46 | BUILD_INTERRUPT(error_interrupt,ERROR_APIC_VECTOR) |
| 47 | BUILD_INTERRUPT(spurious_interrupt,SPURIOUS_APIC_VECTOR) |
| 48 | |
Ingo Molnar | 1164dd0 | 2009-01-28 19:34:09 +0100 | [diff] [blame^] | 49 | #ifdef CONFIG_PERF_COUNTERS |
| 50 | BUILD_INTERRUPT(perf_counter_interrupt, LOCAL_PERF_VECTOR) |
| 51 | #endif |
| 52 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 53 | #ifdef CONFIG_X86_MCE_P4THERMAL |
| 54 | BUILD_INTERRUPT(thermal_interrupt,THERMAL_APIC_VECTOR) |
| 55 | #endif |
| 56 | |
| 57 | #endif |