linuxtorvalds / rpms / kernel

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