diff options
| -rw-r--r-- | arch/x86/include/asm/entry_arch.h | 2 | ||||
| -rw-r--r-- | arch/x86/include/asm/hardirq.h | 2 | ||||
| -rw-r--r-- | arch/x86/include/asm/hw_irq.h | 4 | ||||
| -rw-r--r-- | arch/x86/include/asm/irq.h | 2 | ||||
| -rw-r--r-- | arch/x86/include/asm/irq_vectors.h | 2 | ||||
| -rw-r--r-- | arch/x86/kernel/entry_64.S | 4 | ||||
| -rw-r--r-- | arch/x86/kernel/irq.c | 20 | ||||
| -rw-r--r-- | arch/x86/kernel/irqinit.c | 4 | ||||
| -rw-r--r-- | arch/x86/kernel/uv_time.c | 10 |
9 files changed, 25 insertions, 25 deletions
diff --git a/arch/x86/include/asm/entry_arch.h b/arch/x86/include/asm/entry_arch.h index f5693c81a1db..8e8ec663a98f 100644 --- a/arch/x86/include/asm/entry_arch.h +++ b/arch/x86/include/asm/entry_arch.h | |||
| @@ -34,7 +34,7 @@ BUILD_INTERRUPT3(invalidate_interrupt7,INVALIDATE_TLB_VECTOR_START+7, | |||
| 34 | smp_invalidate_interrupt) | 34 | smp_invalidate_interrupt) |
| 35 | #endif | 35 | #endif |
| 36 | 36 | ||
| 37 | BUILD_INTERRUPT(generic_interrupt, GENERIC_INTERRUPT_VECTOR) | 37 | BUILD_INTERRUPT(x86_platform_ipi, X86_PLATFORM_IPI_VECTOR) |
| 38 | 38 | ||
| 39 | /* | 39 | /* |
| 40 | * every pentium local APIC has two 'local interrupts', with a | 40 | * every pentium local APIC has two 'local interrupts', with a |
diff --git a/arch/x86/include/asm/hardirq.h b/arch/x86/include/asm/hardirq.h index 82e3e8f01043..beaabd794a10 100644 --- a/arch/x86/include/asm/hardirq.h +++ b/arch/x86/include/asm/hardirq.h | |||
| @@ -12,7 +12,7 @@ typedef struct { | |||
| 12 | unsigned int apic_timer_irqs; /* arch dependent */ | 12 | unsigned int apic_timer_irqs; /* arch dependent */ |
| 13 | unsigned int irq_spurious_count; | 13 | unsigned int irq_spurious_count; |
| 14 | #endif | 14 | #endif |
| 15 | unsigned int generic_irqs; /* arch dependent */ | 15 | unsigned int x86_platform_ipis; /* arch dependent */ |
| 16 | unsigned int apic_perf_irqs; | 16 | unsigned int apic_perf_irqs; |
| 17 | unsigned int apic_pending_irqs; | 17 | unsigned int apic_pending_irqs; |
| 18 | #ifdef CONFIG_SMP | 18 | #ifdef CONFIG_SMP |
diff --git a/arch/x86/include/asm/hw_irq.h b/arch/x86/include/asm/hw_irq.h index ba180d93b08c..95207ca5c6f1 100644 --- a/arch/x86/include/asm/hw_irq.h +++ b/arch/x86/include/asm/hw_irq.h | |||
| @@ -27,7 +27,7 @@ | |||
| 27 | 27 | ||
| 28 | /* Interrupt handlers registered during init_IRQ */ | 28 | /* Interrupt handlers registered during init_IRQ */ |
| 29 | extern void apic_timer_interrupt(void); | 29 | extern void apic_timer_interrupt(void); |
| 30 | extern void generic_interrupt(void); | 30 | extern void x86_platform_ipi(void); |
| 31 | extern void error_interrupt(void); | 31 | extern void error_interrupt(void); |
| 32 | extern void perf_pending_interrupt(void); | 32 | extern void perf_pending_interrupt(void); |
| 33 | 33 | ||
| @@ -101,7 +101,7 @@ extern void eisa_set_level_irq(unsigned int irq); | |||
| 101 | /* SMP */ | 101 | /* SMP */ |
| 102 | extern void smp_apic_timer_interrupt(struct pt_regs *); | 102 | extern void smp_apic_timer_interrupt(struct pt_regs *); |
| 103 | extern void smp_spurious_interrupt(struct pt_regs *); | 103 | extern void smp_spurious_interrupt(struct pt_regs *); |
| 104 | extern void smp_generic_interrupt(struct pt_regs *); | 104 | extern void smp_x86_platform_ipi(struct pt_regs *); |
| 105 | extern void smp_error_interrupt(struct pt_regs *); | 105 | extern void smp_error_interrupt(struct pt_regs *); |
| 106 | #ifdef CONFIG_X86_IO_APIC | 106 | #ifdef CONFIG_X86_IO_APIC |
| 107 | extern asmlinkage void smp_irq_move_cleanup_interrupt(void); | 107 | extern asmlinkage void smp_irq_move_cleanup_interrupt(void); |
diff --git a/arch/x86/include/asm/irq.h b/arch/x86/include/asm/irq.h index ddda6cbed6f4..fcbc6d144501 100644 --- a/arch/x86/include/asm/irq.h +++ b/arch/x86/include/asm/irq.h | |||
| @@ -36,7 +36,7 @@ static inline int irq_canonicalize(int irq) | |||
| 36 | extern void fixup_irqs(void); | 36 | extern void fixup_irqs(void); |
| 37 | #endif | 37 | #endif |
| 38 | 38 | ||
| 39 | extern void (*generic_interrupt_extension)(void); | 39 | extern void (*x86_platform_ipi_callback)(void); |
| 40 | extern void native_init_IRQ(void); | 40 | extern void native_init_IRQ(void); |
| 41 | extern bool handle_irq(unsigned irq, struct pt_regs *regs); | 41 | extern bool handle_irq(unsigned irq, struct pt_regs *regs); |
| 42 | 42 | ||
diff --git a/arch/x86/include/asm/irq_vectors.h b/arch/x86/include/asm/irq_vectors.h index 5b21f0ec3df2..6a635bd39867 100644 --- a/arch/x86/include/asm/irq_vectors.h +++ b/arch/x86/include/asm/irq_vectors.h | |||
| @@ -106,7 +106,7 @@ | |||
| 106 | /* | 106 | /* |
| 107 | * Generic system vector for platform specific use | 107 | * Generic system vector for platform specific use |
| 108 | */ | 108 | */ |
| 109 | #define GENERIC_INTERRUPT_VECTOR 0xed | 109 | #define X86_PLATFORM_IPI_VECTOR 0xed |
| 110 | 110 | ||
| 111 | /* | 111 | /* |
| 112 | * Performance monitoring pending work vector: | 112 | * Performance monitoring pending work vector: |
diff --git a/arch/x86/kernel/entry_64.S b/arch/x86/kernel/entry_64.S index b5c061f8f358..6714432ef381 100644 --- a/arch/x86/kernel/entry_64.S +++ b/arch/x86/kernel/entry_64.S | |||
| @@ -969,8 +969,8 @@ apicinterrupt UV_BAU_MESSAGE \ | |||
| 969 | #endif | 969 | #endif |
| 970 | apicinterrupt LOCAL_TIMER_VECTOR \ | 970 | apicinterrupt LOCAL_TIMER_VECTOR \ |
| 971 | apic_timer_interrupt smp_apic_timer_interrupt | 971 | apic_timer_interrupt smp_apic_timer_interrupt |
| 972 | apicinterrupt GENERIC_INTERRUPT_VECTOR \ | 972 | apicinterrupt X86_PLATFORM_IPI_VECTOR \ |
| 973 | generic_interrupt smp_generic_interrupt | 973 | x86_platform_ipi smp_x86_platform_ipi |
| 974 | 974 | ||
| 975 | #ifdef CONFIG_SMP | 975 | #ifdef CONFIG_SMP |
| 976 | apicinterrupt INVALIDATE_TLB_VECTOR_START+0 \ | 976 | apicinterrupt INVALIDATE_TLB_VECTOR_START+0 \ |
diff --git a/arch/x86/kernel/irq.c b/arch/x86/kernel/irq.c index 391206199515..9375dce39f5f 100644 --- a/arch/x86/kernel/irq.c +++ b/arch/x86/kernel/irq.c | |||
| @@ -18,7 +18,7 @@ | |||
| 18 | atomic_t irq_err_count; | 18 | atomic_t irq_err_count; |
| 19 | 19 | ||
| 20 | /* Function pointer for generic interrupt vector handling */ | 20 | /* Function pointer for generic interrupt vector handling */ |
| 21 | void (*generic_interrupt_extension)(void) = NULL; | 21 | void (*x86_platform_ipi_callback)(void) = NULL; |
| 22 | 22 | ||
| 23 | /* | 23 | /* |
| 24 | * 'what should we do if we get a hw irq event on an illegal vector'. | 24 | * 'what should we do if we get a hw irq event on an illegal vector'. |
| @@ -72,10 +72,10 @@ static int show_other_interrupts(struct seq_file *p, int prec) | |||
| 72 | seq_printf(p, "%10u ", irq_stats(j)->apic_pending_irqs); | 72 | seq_printf(p, "%10u ", irq_stats(j)->apic_pending_irqs); |
| 73 | seq_printf(p, " Performance pending work\n"); | 73 | seq_printf(p, " Performance pending work\n"); |
| 74 | #endif | 74 | #endif |
| 75 | if (generic_interrupt_extension) { | 75 | if (x86_platform_ipi_callback) { |
| 76 | seq_printf(p, "%*s: ", prec, "PLT"); | 76 | seq_printf(p, "%*s: ", prec, "PLT"); |
| 77 | for_each_online_cpu(j) | 77 | for_each_online_cpu(j) |
| 78 | seq_printf(p, "%10u ", irq_stats(j)->generic_irqs); | 78 | seq_printf(p, "%10u ", irq_stats(j)->x86_platform_ipis); |
| 79 | seq_printf(p, " Platform interrupts\n"); | 79 | seq_printf(p, " Platform interrupts\n"); |
| 80 | } | 80 | } |
| 81 | #ifdef CONFIG_SMP | 81 | #ifdef CONFIG_SMP |
| @@ -187,8 +187,8 @@ u64 arch_irq_stat_cpu(unsigned int cpu) | |||
| 187 | sum += irq_stats(cpu)->apic_perf_irqs; | 187 | sum += irq_stats(cpu)->apic_perf_irqs; |
| 188 | sum += irq_stats(cpu)->apic_pending_irqs; | 188 | sum += irq_stats(cpu)->apic_pending_irqs; |
| 189 | #endif | 189 | #endif |
| 190 | if (generic_interrupt_extension) | 190 | if (x86_platform_ipi_callback) |
| 191 | sum += irq_stats(cpu)->generic_irqs; | 191 | sum += irq_stats(cpu)->x86_platform_ipis; |
| 192 | #ifdef CONFIG_SMP | 192 | #ifdef CONFIG_SMP |
| 193 | sum += irq_stats(cpu)->irq_resched_count; | 193 | sum += irq_stats(cpu)->irq_resched_count; |
| 194 | sum += irq_stats(cpu)->irq_call_count; | 194 | sum += irq_stats(cpu)->irq_call_count; |
| @@ -252,9 +252,9 @@ unsigned int __irq_entry do_IRQ(struct pt_regs *regs) | |||
| 252 | } | 252 | } |
| 253 | 253 | ||
| 254 | /* | 254 | /* |
| 255 | * Handler for GENERIC_INTERRUPT_VECTOR. | 255 | * Handler for X86_PLATFORM_IPI_VECTOR. |
| 256 | */ | 256 | */ |
| 257 | void smp_generic_interrupt(struct pt_regs *regs) | 257 | void smp_x86_platform_ipi(struct pt_regs *regs) |
| 258 | { | 258 | { |
| 259 | struct pt_regs *old_regs = set_irq_regs(regs); | 259 | struct pt_regs *old_regs = set_irq_regs(regs); |
| 260 | 260 | ||
| @@ -264,10 +264,10 @@ void smp_generic_interrupt(struct pt_regs *regs) | |||
| 264 | 264 | ||
| 265 | irq_enter(); | 265 | irq_enter(); |
| 266 | 266 | ||
| 267 | inc_irq_stat(generic_irqs); | 267 | inc_irq_stat(x86_platform_ipis); |
| 268 | 268 | ||
| 269 | if (generic_interrupt_extension) | 269 | if (x86_platform_ipi_callback) |
| 270 | generic_interrupt_extension(); | 270 | x86_platform_ipi_callback(); |
| 271 | 271 | ||
| 272 | run_local_timers(); | 272 | run_local_timers(); |
| 273 | irq_exit(); | 273 | irq_exit(); |
diff --git a/arch/x86/kernel/irqinit.c b/arch/x86/kernel/irqinit.c index 40f30773fb29..d5932226614f 100644 --- a/arch/x86/kernel/irqinit.c +++ b/arch/x86/kernel/irqinit.c | |||
| @@ -200,8 +200,8 @@ static void __init apic_intr_init(void) | |||
| 200 | /* self generated IPI for local APIC timer */ | 200 | /* self generated IPI for local APIC timer */ |
| 201 | alloc_intr_gate(LOCAL_TIMER_VECTOR, apic_timer_interrupt); | 201 | alloc_intr_gate(LOCAL_TIMER_VECTOR, apic_timer_interrupt); |
| 202 | 202 | ||
| 203 | /* generic IPI for platform specific use */ | 203 | /* IPI for X86 platform specific use */ |
| 204 | alloc_intr_gate(GENERIC_INTERRUPT_VECTOR, generic_interrupt); | 204 | alloc_intr_gate(X86_PLATFORM_IPI_VECTOR, x86_platform_ipi); |
| 205 | 205 | ||
| 206 | /* IPI vectors for APIC spurious and error interrupts */ | 206 | /* IPI vectors for APIC spurious and error interrupts */ |
| 207 | alloc_intr_gate(SPURIOUS_APIC_VECTOR, spurious_interrupt); | 207 | alloc_intr_gate(SPURIOUS_APIC_VECTOR, spurious_interrupt); |
diff --git a/arch/x86/kernel/uv_time.c b/arch/x86/kernel/uv_time.c index 255645084534..3da7b1d8bfd3 100644 --- a/arch/x86/kernel/uv_time.c +++ b/arch/x86/kernel/uv_time.c | |||
| @@ -91,7 +91,7 @@ static void uv_rtc_send_IPI(int cpu) | |||
| 91 | pnode = uv_apicid_to_pnode(apicid); | 91 | pnode = uv_apicid_to_pnode(apicid); |
| 92 | val = (1UL << UVH_IPI_INT_SEND_SHFT) | | 92 | val = (1UL << UVH_IPI_INT_SEND_SHFT) | |
| 93 | (apicid << UVH_IPI_INT_APIC_ID_SHFT) | | 93 | (apicid << UVH_IPI_INT_APIC_ID_SHFT) | |
| 94 | (GENERIC_INTERRUPT_VECTOR << UVH_IPI_INT_VECTOR_SHFT); | 94 | (X86_PLATFORM_IPI_VECTOR << UVH_IPI_INT_VECTOR_SHFT); |
| 95 | 95 | ||
| 96 | uv_write_global_mmr64(pnode, UVH_IPI_INT, val); | 96 | uv_write_global_mmr64(pnode, UVH_IPI_INT, val); |
| 97 | } | 97 | } |
| @@ -116,7 +116,7 @@ static int uv_setup_intr(int cpu, u64 expires) | |||
| 116 | uv_write_global_mmr64(pnode, UVH_EVENT_OCCURRED0_ALIAS, | 116 | uv_write_global_mmr64(pnode, UVH_EVENT_OCCURRED0_ALIAS, |
| 117 | UVH_EVENT_OCCURRED0_RTC1_MASK); | 117 | UVH_EVENT_OCCURRED0_RTC1_MASK); |
| 118 | 118 | ||
| 119 | val = (GENERIC_INTERRUPT_VECTOR << UVH_RTC1_INT_CONFIG_VECTOR_SHFT) | | 119 | val = (X86_PLATFORM_IPI_VECTOR << UVH_RTC1_INT_CONFIG_VECTOR_SHFT) | |
| 120 | ((u64)cpu_physical_id(cpu) << UVH_RTC1_INT_CONFIG_APIC_ID_SHFT); | 120 | ((u64)cpu_physical_id(cpu) << UVH_RTC1_INT_CONFIG_APIC_ID_SHFT); |
| 121 | 121 | ||
| 122 | /* Set configuration */ | 122 | /* Set configuration */ |
| @@ -364,7 +364,7 @@ static __init int uv_rtc_setup_clock(void) | |||
| 364 | { | 364 | { |
| 365 | int rc; | 365 | int rc; |
| 366 | 366 | ||
| 367 | if (!uv_rtc_enable || !is_uv_system() || generic_interrupt_extension) | 367 | if (!uv_rtc_enable || !is_uv_system() || x86_platform_ipi_callback) |
| 368 | return -ENODEV; | 368 | return -ENODEV; |
| 369 | 369 | ||
| 370 | clocksource_uv.mult = clocksource_hz2mult(sn_rtc_cycles_per_second, | 370 | clocksource_uv.mult = clocksource_hz2mult(sn_rtc_cycles_per_second, |
| @@ -385,7 +385,7 @@ static __init int uv_rtc_setup_clock(void) | |||
| 385 | if (rc) | 385 | if (rc) |
| 386 | goto error; | 386 | goto error; |
| 387 | 387 | ||
| 388 | generic_interrupt_extension = uv_rtc_interrupt; | 388 | x86_platform_ipi_callback = uv_rtc_interrupt; |
| 389 | 389 | ||
| 390 | clock_event_device_uv.mult = div_sc(sn_rtc_cycles_per_second, | 390 | clock_event_device_uv.mult = div_sc(sn_rtc_cycles_per_second, |
| 391 | NSEC_PER_SEC, clock_event_device_uv.shift); | 391 | NSEC_PER_SEC, clock_event_device_uv.shift); |
| @@ -398,7 +398,7 @@ static __init int uv_rtc_setup_clock(void) | |||
| 398 | 398 | ||
| 399 | rc = schedule_on_each_cpu(uv_rtc_register_clockevents); | 399 | rc = schedule_on_each_cpu(uv_rtc_register_clockevents); |
| 400 | if (rc) { | 400 | if (rc) { |
| 401 | generic_interrupt_extension = NULL; | 401 | x86_platform_ipi_callback = NULL; |
| 402 | uv_rtc_deallocate_timers(); | 402 | uv_rtc_deallocate_timers(); |
| 403 | goto error; | 403 | goto error; |
| 404 | } | 404 | } |
