Skip to contentSkip to conversation

x86: remove first_free_entry/pin_map_size

PATCH Applied Yinghai Lu 2 participants 2 messages Aug 17, 2008 x86

lore
Share & tools
lore

Yinghai Lu

author
#0 lore raw

PATCH 1/1 x86: remove first_free_entry/pin_map_size

no user now

---
 arch/x86/kernel/io_apic.c |    7 -------
 arch/x86/kernel/setup.c   |    4 ----
 include/asm-x86/irq.h     |    3 ---
 3 files changed, 14 deletions(-)
arch/x86/kernel/io_apic.c +0 -7
Index: linux-2.6/arch/x86/kernel/io_apic.c
===================================================================
@@ -72,13 +72,6 @@ int sis_apic_bug = -1;
 static DEFINE_SPINLOCK(ioapic_lock);
 static DEFINE_SPINLOCK(vector_lock);
 
-int first_free_entry;
-/*
- * Rough estimation of how many shared IRQs there are, can
- * be changed anytime.
- */
-int pin_map_size;
-
 /*
  * # of IRQ routing registers
  */
arch/x86/kernel/setup.c +0 -4
Index: linux-2.6/arch/x86/kernel/setup.c
===================================================================
@@ -878,10 +878,6 @@ void __init setup_arch(char **cmdline_p)
 		nr_irqs = 32 * nr_cpu_ids + 224;
 	init_cpu_to_node();
 #endif
-#ifdef CONFIG_X86_IO_APIC
-	pin_map_size = nr_irqs * 2;
-	first_free_entry = nr_irqs;
-#endif
 
 	init_apic_mappings();
 	ioapic_init_mappings();
include/asm-x86/irq.h +0 -3
Index: linux-2.6/include/asm-x86/irq.h
===================================================================
@@ -10,9 +10,6 @@
 #include <asm/apicdef.h>
 #include <asm/irq_vectors.h>
 
-extern int pin_map_size;
-extern int first_free_entry;
-
 static inline int irq_canonicalize(int irq)
 {
 	return ((irq == 2) ? 9 : irq);
Applied
#1 lore raw
Quoted 1 line · Yinghai Lu

no user now

applied to tip/irq/sparseirq - thanks Yinghai.

Ingo