From: Jeremy Fitzhardinge Date: Mon, 26 May 2008 22:31:16 +0000 (+0100) Subject: xen: count resched interrupts properly X-Git-Tag: firefly_0821_release~19697^2~253^24~29 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=38bb5ab4179572f4d24d3ca7188172a31ca51a69;p=firefly-linux-kernel-4.4.55.git xen: count resched interrupts properly Make sure resched interrupts appear in /proc/interrupts in the proper place. Signed-off-by: Jeremy Fitzhardinge Signed-off-by: Thomas Gleixner --- diff --git a/arch/x86/xen/smp.c b/arch/x86/xen/smp.c index 94e69000f982..74ab8968c525 100644 --- a/arch/x86/xen/smp.c +++ b/arch/x86/xen/smp.c @@ -65,6 +65,12 @@ static struct call_data_struct *call_data; */ static irqreturn_t xen_reschedule_interrupt(int irq, void *dev_id) { +#ifdef CONFIG_X86_32 + __get_cpu_var(irq_stat).irq_resched_count++; +#else + add_pda(irq_resched_count, 1); +#endif + return IRQ_HANDLED; }