Skip to content

Commit

Permalink
x86: remove first_free_entry/pin_map_size
Browse files Browse the repository at this point in the history
no user now

Signed-off-by: Yinghai Lu <yhlu.kernel@gmail.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
  • Loading branch information
Yinghai Lu authored and Ingo Molnar committed Oct 16, 2008
1 parent 3eb2cce commit 29ccbbf
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 14 deletions.
7 changes: 0 additions & 7 deletions arch/x86/kernel/io_apic.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/
Expand Down
4 changes: 0 additions & 4 deletions arch/x86/kernel/setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -1074,10 +1074,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();
Expand Down
3 changes: 0 additions & 3 deletions include/asm-x86/irq.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 29ccbbf

Please sign in to comment.