Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 136384
b: refs/heads/master
c: 92296c6
h: refs/heads/master
v: v3
  • Loading branch information
Mike Travis authored and Ingo Molnar committed Jan 11, 2009
1 parent 77a03d9 commit e49f718
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 9 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 542d865bbed4ce1f050f586e53cf1cfadda93766
refs/heads/master: 92296c6d6e908c35fca287a21af27be814af9c75
8 changes: 6 additions & 2 deletions trunk/arch/x86/include/asm/apicdef.h
Original file line number Diff line number Diff line change
Expand Up @@ -132,8 +132,12 @@
#define APIC_BASE_MSR 0x800
#define X2APIC_ENABLE (1UL << 10)

/* get MAX_IO_APICS */
#include <asm/apicnum.h>
#ifdef CONFIG_X86_32
# define MAX_IO_APICS 64
#else
# define MAX_IO_APICS 128
# define MAX_LOCAL_APIC 32768
#endif

/*
* All x86-64 systems are xAPIC compatible.
Expand Down
6 changes: 0 additions & 6 deletions trunk/include/linux/irqnr.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,9 @@

#else /* CONFIG_GENERIC_HARDIRQS */

#include <asm/irq_vectors.h> /* need possible max_nr_irqs() */

extern int nr_irqs;
extern struct irq_desc *irq_to_desc(unsigned int irq);

# ifndef max_nr_irqs
# define max_nr_irqs(nr_cpus) NR_IRQS
# endif

# define for_each_irq_desc(irq, desc) \
for (irq = 0, desc = irq_to_desc(irq); irq < nr_irqs; \
irq++, desc = irq_to_desc(irq)) \
Expand Down
5 changes: 5 additions & 0 deletions trunk/kernel/irq/handle.c
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,11 @@ int nr_irqs = NR_IRQS;
EXPORT_SYMBOL_GPL(nr_irqs);

#ifdef CONFIG_SPARSE_IRQ

#ifndef max_nr_irqs
#define max_nr_irqs(nr_cpus) NR_IRQS
#endif

static struct irq_desc irq_desc_init = {
.irq = -1,
.status = IRQ_DISABLED,
Expand Down

0 comments on commit e49f718

Please sign in to comment.