aboutsummaryrefslogtreecommitdiffstats
path: root/xen/arch/x86/i8259.c
diff options
context:
space:
mode:
authorKeir Fraser <keir.fraser@citrix.com>2009-10-28 10:54:20 +0000
committerKeir Fraser <keir.fraser@citrix.com>2009-10-28 10:54:20 +0000
commit0a7e9c30b5554194b7b3c80ab751f13df0f7607f (patch)
treeba4b726df583eea549900788a60d601a6db4e1e1 /xen/arch/x86/i8259.c
parent78942912c8a3ff303b910d4a179ff6be7e9b0477 (diff)
downloadxen-0a7e9c30b5554194b7b3c80ab751f13df0f7607f.tar.gz
xen-0a7e9c30b5554194b7b3c80ab751f13df0f7607f.tar.bz2
xen-0a7e9c30b5554194b7b3c80ab751f13df0f7607f.zip
irq cleanup
Make IRQ related data const or __read_mostly where possible/reasonable, use platform_legacy_irq() where feasible, and remove the now unused definition of vector_to_irq(). Signed-off-by: Jan Beulich <jbeulich@novell.com>
Diffstat (limited to 'xen/arch/x86/i8259.c')
-rw-r--r--xen/arch/x86/i8259.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/xen/arch/x86/i8259.c b/xen/arch/x86/i8259.c
index a44dd068ae..2474f7864d 100644
--- a/xen/arch/x86/i8259.c
+++ b/xen/arch/x86/i8259.c
@@ -97,7 +97,7 @@ static void end_8259A_irq(unsigned int irq)
enable_8259A_irq(irq);
}
-static struct hw_interrupt_type i8259A_irq_type = {
+static struct hw_interrupt_type __read_mostly i8259A_irq_type = {
.typename = "XT-PIC",
.startup = startup_8259A_irq,
.shutdown = disable_8259A_irq,
@@ -347,7 +347,7 @@ void __devinit init_8259A(int auto_eoi)
spin_unlock_irqrestore(&i8259A_lock, flags);
}
-static struct irqaction cascade = { no_action, "cascade", NULL};
+static struct irqaction __read_mostly cascade = { no_action, "cascade", NULL};
void __init init_IRQ(void)
{
@@ -366,7 +366,7 @@ void __init init_IRQ(void)
set_intr_gate(vector, interrupt[vector]);
}
- for (irq = 0; irq < 16; irq++) {
+ for (irq = 0; platform_legacy_irq(irq); irq++) {
struct irq_desc *desc = irq_to_desc(irq);
struct irq_cfg *cfg = desc->chip_data;