|
|
b312fc |
diff -up linux-3.10.0-327.sdl7.x86_64/arch/x86/include/asm/hardirq.h.undorhirqstat linux-3.10.0-327.sdl7.x86_64/arch/x86/include/asm/hardirq.h
|
|
|
b312fc |
--- linux-3.10.0-327.sdl7.x86_64/arch/x86/include/asm/hardirq.h.undorhirqstat 2015-10-29 16:56:51.000000000 -0400
|
|
|
b312fc |
+++ linux-3.10.0-327.sdl7.x86_64/arch/x86/include/asm/hardirq.h 2015-11-21 23:57:10.330063191 -0500
|
|
|
b312fc |
@@ -37,18 +37,13 @@ typedef struct {
|
|
|
b312fc |
|
|
|
b312fc |
DECLARE_PER_CPU_SHARED_ALIGNED(irq_cpustat_t, irq_stat);
|
|
|
b312fc |
|
|
|
b312fc |
-typedef struct {
|
|
|
b312fc |
- unsigned int irq_hv_callback_count;
|
|
|
b312fc |
-} ____cacheline_aligned rh_irq_cpustat_t;
|
|
|
b312fc |
-
|
|
|
b312fc |
-DECLARE_PER_CPU_SHARED_ALIGNED(rh_irq_cpustat_t, rh_irq_stat);
|
|
|
b312fc |
+/* We can have at most NR_VECTORS irqs routed to a cpu at a time */
|
|
|
b312fc |
+#define MAX_HARDIRQS_PER_CPU NR_VECTORS
|
|
|
b312fc |
|
|
|
b312fc |
#define __ARCH_IRQ_STAT
|
|
|
b312fc |
|
|
|
b312fc |
#define inc_irq_stat(member) this_cpu_inc(irq_stat.member)
|
|
|
b312fc |
|
|
|
b312fc |
-#define rh_inc_irq_stat(member) this_cpu_inc(rh_irq_stat.member)
|
|
|
b312fc |
-
|
|
|
b312fc |
#define local_softirq_pending() this_cpu_read(irq_stat.__softirq_pending)
|
|
|
b312fc |
|
|
|
b312fc |
#define __ARCH_SET_SOFTIRQ_PENDING
|
|
|
b312fc |
diff -up linux-3.10.0-327.sdl7.x86_64/arch/x86/kernel/cpu/mshyperv.c.undorhirqstat linux-3.10.0-327.sdl7.x86_64/arch/x86/kernel/cpu/mshyperv.c
|
|
|
b312fc |
--- linux-3.10.0-327.sdl7.x86_64/arch/x86/kernel/cpu/mshyperv.c.undorhirqstat 2015-10-29 16:56:51.000000000 -0400
|
|
|
b312fc |
+++ linux-3.10.0-327.sdl7.x86_64/arch/x86/kernel/cpu/mshyperv.c 2015-11-22 00:03:55.131003266 -0500
|
|
|
b312fc |
@@ -46,7 +46,6 @@ void hyperv_vector_handler(struct pt_reg
|
|
|
b312fc |
irq_enter();
|
|
|
b312fc |
exit_idle();
|
|
|
b312fc |
|
|
|
b312fc |
- rh_inc_irq_stat(irq_hv_callback_count);
|
|
|
b312fc |
if (vmbus_handler)
|
|
|
b312fc |
vmbus_handler();
|
|
|
b312fc |
|
|
|
b312fc |
diff -up linux-3.10.0-327.sdl7.x86_64/arch/x86/kernel/irq.c.undorhirqstat linux-3.10.0-327.sdl7.x86_64/arch/x86/kernel/irq.c
|
|
|
b312fc |
--- linux-3.10.0-327.sdl7.x86_64/arch/x86/kernel/irq.c.undorhirqstat 2015-10-29 16:56:51.000000000 -0400
|
|
|
b312fc |
+++ linux-3.10.0-327.sdl7.x86_64/arch/x86/kernel/irq.c 2015-11-21 23:58:02.526064171 -0500
|
|
|
b312fc |
@@ -48,7 +48,6 @@ void ack_bad_irq(unsigned int irq)
|
|
|
b312fc |
}
|
|
|
b312fc |
|
|
|
b312fc |
#define irq_stats(x) (&per_cpu(irq_stat, x))
|
|
|
b312fc |
-#define rh_irq_stats(x) (&per_cpu(rh_irq_stat, x))
|
|
|
b312fc |
/*
|
|
|
b312fc |
* /proc/interrupts printing for arch specific interrupts
|
|
|
b312fc |
*/
|
|
|
b312fc |
@@ -126,13 +125,6 @@ int arch_show_interrupts(struct seq_file
|
|
|
b312fc |
seq_printf(p, "%10u ", per_cpu(mce_poll_count, j));
|
|
|
b312fc |
seq_printf(p, " Machine check polls\n");
|
|
|
b312fc |
#endif
|
|
|
b312fc |
- if (test_bit(HYPERVISOR_CALLBACK_VECTOR, used_vectors)) {
|
|
|
b312fc |
- seq_printf(p, "%*s: ", prec, "HYP");
|
|
|
b312fc |
- for_each_online_cpu(j)
|
|
|
b312fc |
- seq_printf(p, "%10u ",
|
|
|
b312fc |
- rh_irq_stats(j)->irq_hv_callback_count);
|
|
|
b312fc |
- seq_printf(p, " Hypervisor callback interrupts\n");
|
|
|
b312fc |
- }
|
|
|
b312fc |
seq_printf(p, "%*s: %10u\n", prec, "ERR", atomic_read(&irq_err_count));
|
|
|
b312fc |
#if defined(CONFIG_X86_IO_APIC)
|
|
|
b312fc |
seq_printf(p, "%*s: %10u\n", prec, "MIS", atomic_read(&irq_mis_count));
|
|
|
b312fc |
diff -up linux-3.10.0-327.sdl7.x86_64/arch/x86/kernel/irq_64.c.undorhirqstat linux-3.10.0-327.sdl7.x86_64/arch/x86/kernel/irq_64.c
|
|
|
b312fc |
--- linux-3.10.0-327.sdl7.x86_64/arch/x86/kernel/irq_64.c.undorhirqstat 2015-10-29 16:56:51.000000000 -0400
|
|
|
b312fc |
+++ linux-3.10.0-327.sdl7.x86_64/arch/x86/kernel/irq_64.c 2015-11-21 23:58:27.650064642 -0500
|
|
|
b312fc |
@@ -23,8 +23,6 @@
|
|
|
b312fc |
DEFINE_PER_CPU_SHARED_ALIGNED(irq_cpustat_t, irq_stat);
|
|
|
b312fc |
EXPORT_PER_CPU_SYMBOL(irq_stat);
|
|
|
b312fc |
|
|
|
b312fc |
-DEFINE_PER_CPU_SHARED_ALIGNED(rh_irq_cpustat_t, rh_irq_stat);
|
|
|
b312fc |
-
|
|
|
b312fc |
DEFINE_PER_CPU(struct pt_regs *, irq_regs);
|
|
|
b312fc |
EXPORT_PER_CPU_SYMBOL(irq_regs);
|
|
|
b312fc |
|
|
|
b312fc |
diff -up linux-3.10.0-327.sdl7.x86_64/drivers/xen/events.c.undorhirqstat linux-3.10.0-327.sdl7.x86_64/drivers/xen/events.c
|
|
|
b312fc |
--- linux-3.10.0-327.sdl7.x86_64/drivers/xen/events.c.undorhirqstat 2015-10-29 16:56:51.000000000 -0400
|
|
|
b312fc |
+++ linux-3.10.0-327.sdl7.x86_64/drivers/xen/events.c 2015-11-22 00:04:18.032003696 -0500
|
|
|
b312fc |
@@ -1446,8 +1446,6 @@ void xen_evtchn_do_upcall(struct pt_regs
|
|
|
b312fc |
#ifdef CONFIG_X86
|
|
|
b312fc |
exit_idle();
|
|
|
b312fc |
#endif
|
|
|
b312fc |
- rh_inc_irq_stat(irq_hv_callback_count);
|
|
|
b312fc |
-
|
|
|
b312fc |
__xen_evtchn_do_upcall();
|
|
|
b312fc |
|
|
|
b312fc |
irq_exit();
|