Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 39113
b: refs/heads/master
c: b940d22
h: refs/heads/master
i:
  39111: af529ac
v: v3
  • Loading branch information
Eric W. Biederman authored and Linus Torvalds committed Oct 8, 2006
1 parent 7ee4981 commit dce5b37
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 16 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: 7da5d406792eedb5341a8c20296470b2e67743e7
refs/heads/master: b940d22d58c41b2ae491dca9232850f6f38f3653
12 changes: 6 additions & 6 deletions trunk/arch/i386/kernel/io_apic.c
Original file line number Diff line number Diff line change
Expand Up @@ -1184,8 +1184,8 @@ static int __assign_irq_vector(int irq)

BUG_ON((unsigned)irq >= NR_IRQ_VECTORS);

if (IO_APIC_VECTOR(irq) > 0)
return IO_APIC_VECTOR(irq);
if (irq_vector[irq] > 0)
return irq_vector[irq];

current_vector += 8;
if (current_vector == SYSCALL_VECTOR)
Expand All @@ -1199,7 +1199,7 @@ static int __assign_irq_vector(int irq)
}

vector = current_vector;
IO_APIC_VECTOR(irq) = vector;
irq_vector[irq] = vector;

return vector;
}
Expand Down Expand Up @@ -1967,7 +1967,7 @@ static void ack_ioapic_quirk_irq(unsigned int irq)
* operation to prevent an edge-triggered interrupt escaping meanwhile.
* The idea is from Manfred Spraul. --macro
*/
i = IO_APIC_VECTOR(irq);
i = irq_vector[irq];

v = apic_read(APIC_TMR + ((i & ~0x1f) >> 1));

Expand All @@ -1984,7 +1984,7 @@ static void ack_ioapic_quirk_irq(unsigned int irq)

static int ioapic_retrigger_irq(unsigned int irq)
{
send_IPI_self(IO_APIC_VECTOR(irq));
send_IPI_self(irq_vector[irq]);

return 1;
}
Expand Down Expand Up @@ -2020,7 +2020,7 @@ static inline void init_IO_APIC_traps(void)
*/
for (irq = 0; irq < NR_IRQS ; irq++) {
int tmp = irq;
if (IO_APIC_IRQ(tmp) && !IO_APIC_VECTOR(tmp)) {
if (IO_APIC_IRQ(tmp) && !irq_vector[tmp]) {
/*
* Hmm.. We don't have an entry for this,
* so default to an old-fashioned 8259
Expand Down
8 changes: 4 additions & 4 deletions trunk/arch/x86_64/kernel/io_apic.c
Original file line number Diff line number Diff line change
Expand Up @@ -587,8 +587,8 @@ static int __assign_irq_vector(int irq, cpumask_t mask)

BUG_ON((unsigned)irq >= NR_IRQ_VECTORS);

if (IO_APIC_VECTOR(irq) > 0)
old_vector = IO_APIC_VECTOR(irq);
if (irq_vector[irq] > 0)
old_vector = irq_vector[irq];
if ((old_vector > 0) && cpu_isset(old_vector >> 8, mask)) {
return old_vector;
}
Expand Down Expand Up @@ -620,7 +620,7 @@ static int __assign_irq_vector(int irq, cpumask_t mask)
}
per_cpu(vector_irq, cpu)[vector] = irq;
vector |= cpu << 8;
IO_APIC_VECTOR(irq) = vector;
irq_vector[irq] = vector;
return vector;
}
return -ENOSPC;
Expand Down Expand Up @@ -1289,7 +1289,7 @@ static inline void init_IO_APIC_traps(void)
*/
for (irq = 0; irq < NR_IRQS ; irq++) {
int tmp = irq;
if (IO_APIC_IRQ(tmp) && !IO_APIC_VECTOR(tmp)) {
if (IO_APIC_IRQ(tmp) && !irq_vector[tmp]) {
/*
* Hmm.. We don't have an entry for this,
* so default to an old-fashioned 8259
Expand Down
3 changes: 0 additions & 3 deletions trunk/include/asm-i386/hw_irq.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,6 @@
* Interrupt entry/exit code at both C and assembly level
*/

extern u8 irq_vector[NR_IRQ_VECTORS];
#define IO_APIC_VECTOR(irq) (irq_vector[irq])

extern void (*interrupt[NR_IRQS])(void);

#ifdef CONFIG_SMP
Expand Down
2 changes: 0 additions & 2 deletions trunk/include/asm-x86_64/hw_irq.h
Original file line number Diff line number Diff line change
Expand Up @@ -74,10 +74,8 @@


#ifndef __ASSEMBLY__
extern unsigned int irq_vector[NR_IRQ_VECTORS];
typedef int vector_irq_t[NR_VECTORS];
DECLARE_PER_CPU(vector_irq_t, vector_irq);
#define IO_APIC_VECTOR(irq) (irq_vector[irq])

/*
* Various low-level irq details needed by irq.c, process.c,
Expand Down

0 comments on commit dce5b37

Please sign in to comment.