diff options
author | Andrew Cooper <andrew.cooper3@citrix.com> | 2011-09-05 15:02:11 +0100 |
---|---|---|
committer | Andrew Cooper <andrew.cooper3@citrix.com> | 2011-09-05 15:02:11 +0100 |
commit | 0ba296917d257c87dbfb71a77cf20768c7e084ce (patch) | |
tree | d8d28177bf2a19db10dc3134b78cef354eb46ba5 /xen/arch/x86/irq.c | |
parent | ba3d7de6ce6f239c2a44ffba6256095101d757dd (diff) | |
download | xen-0ba296917d257c87dbfb71a77cf20768c7e084ce.tar.gz xen-0ba296917d257c87dbfb71a77cf20768c7e084ce.tar.bz2 xen-0ba296917d257c87dbfb71a77cf20768c7e084ce.zip |
IRQ: Remove bit-rotten code
irq_desc.depth is a write only variable.
LEGACY_IRQ_FROM_VECTOR(vec) is never referenced.
Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: George Dunlap <george.dunlap@eu.citrix.com>
Diffstat (limited to 'xen/arch/x86/irq.c')
-rw-r--r-- | xen/arch/x86/irq.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/xen/arch/x86/irq.c b/xen/arch/x86/irq.c index f4893d8d67..24bd74b551 100644 --- a/xen/arch/x86/irq.c +++ b/xen/arch/x86/irq.c @@ -202,7 +202,6 @@ static void dynamic_irq_cleanup(unsigned int irq) desc->handler->shutdown(irq); action = desc->action; desc->action = NULL; - desc->depth = 1; desc->msi_desc = NULL; desc->handler = &no_irq_type; desc->chip_data->used_vectors=NULL; @@ -302,7 +301,6 @@ static void __init init_one_irq_desc(struct irq_desc *desc) desc->status = IRQ_DISABLED; desc->handler = &no_irq_type; desc->action = NULL; - desc->depth = 1; desc->msi_desc = NULL; spin_lock_init(&desc->lock); cpus_setall(desc->affinity); @@ -817,7 +815,6 @@ void __init release_irq(unsigned int irq) spin_lock_irqsave(&desc->lock,flags); action = desc->action; desc->action = NULL; - desc->depth = 1; desc->status |= IRQ_DISABLED; desc->handler->shutdown(irq); spin_unlock_irqrestore(&desc->lock,flags); @@ -845,7 +842,6 @@ int __init setup_irq(unsigned int irq, struct irqaction *new) } desc->action = new; - desc->depth = 0; desc->status &= ~IRQ_DISABLED; desc->handler->startup(irq); @@ -1424,7 +1420,6 @@ int pirq_guest_bind(struct vcpu *v, struct pirq *pirq, int will_share) cpus_clear(action->cpu_eoi_map); init_timer(&action->eoi_timer, irq_guest_eoi_timer_fn, desc, 0); - desc->depth = 0; desc->status |= IRQ_GUEST; desc->status &= ~IRQ_DISABLED; desc->handler->startup(irq); @@ -1540,7 +1535,6 @@ static irq_guest_action_t *__pirq_guest_unbind( BUG_ON(action->in_flight != 0); /* Disabling IRQ before releasing the desc_lock avoids an IRQ storm. */ - desc->depth = 1; desc->status |= IRQ_DISABLED; desc->handler->disable(irq); |