[PATCH] x86: eliminate unused irq0_irqs counter

From: Jan Beulich
Date: Fri Feb 24 2012 - 06:50:29 EST


As of 2.6.38 this counter is being maintained without ever being read.

Signed-off-by: Jan Beulich <jbeulich@xxxxxxxx>

---
arch/x86/include/asm/hardirq.h | 1 -
arch/x86/kernel/time.c | 3 ---
2 files changed, 4 deletions(-)

--- 3.3-rc4/arch/x86/include/asm/hardirq.h
+++ 3.3-rc4-x86-no-irq0_irqs/arch/x86/include/asm/hardirq.h
@@ -7,7 +7,6 @@
typedef struct {
unsigned int __softirq_pending;
unsigned int __nmi_count; /* arch dependent */
- unsigned int irq0_irqs;
#ifdef CONFIG_X86_LOCAL_APIC
unsigned int apic_timer_irqs; /* arch dependent */
unsigned int irq_spurious_count;
--- 3.3-rc4/arch/x86/kernel/time.c
+++ 3.3-rc4-x86-no-irq0_irqs/arch/x86/kernel/time.c
@@ -57,9 +57,6 @@ EXPORT_SYMBOL(profile_pc);
*/
static irqreturn_t timer_interrupt(int irq, void *dev_id)
{
- /* Keep nmi watchdog up to date */
- inc_irq_stat(irq0_irqs);
-
global_clock_event->event_handler(global_clock_event);

/* MCA bus quirk: Acknowledge irq0 by setting bit 7 in port 0x61 */



--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/