Skip to content

Commit

Permalink
irq: sparse irqs, fix #3
Browse files Browse the repository at this point in the history
fix non-APIC UP build:

 arch/x86/kernel/built-in.o: In function `setup_arch':
 : undefined reference to `pin_map_size'
 arch/x86/kernel/built-in.o: In function `setup_arch':
 : undefined reference to `first_free_entry'

Signed-off-by: Ingo Molnar <mingo@elte.hu>
  • Loading branch information
Ingo Molnar committed Oct 16, 2008
1 parent 301e619 commit a84488c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions arch/x86/kernel/setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -1074,8 +1074,10 @@ 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

0 comments on commit a84488c

Please sign in to comment.