diff options
author | Jan Beulich <jbeulich@suse.com> | 2011-10-19 12:50:54 +0200 |
---|---|---|
committer | Jan Beulich <jbeulich@suse.com> | 2011-10-19 12:50:54 +0200 |
commit | 047ea00c0fa2325bfbe1baeb1e74b90fb3187ddd (patch) | |
tree | 31f62f214620e26f8a7cf2078387e60cbd7a5e37 /xen/arch/x86/i8259.c | |
parent | de4aa5b6b1e5430ba7460087b2c7e7359cd21a69 (diff) | |
download | xen-047ea00c0fa2325bfbe1baeb1e74b90fb3187ddd.tar.gz xen-047ea00c0fa2325bfbe1baeb1e74b90fb3187ddd.tar.bz2 xen-047ea00c0fa2325bfbe1baeb1e74b90fb3187ddd.zip |
fold struct irq_cfg into struct irq_desc
struct irq_cfg really has become an architecture extension to struct
irq_desc, and hence it should be treated as such (rather than as IRQ
chip specific data, which it was meant to be originally).
For a first step, only convert a subset of the uses; subsequent
patches (partly to be sent later) will aim at fully eliminating the
use of the old structure type.
Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>
Diffstat (limited to 'xen/arch/x86/i8259.c')
-rw-r--r-- | xen/arch/x86/i8259.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/xen/arch/x86/i8259.c b/xen/arch/x86/i8259.c index 205ef346f0..f5d7ee2d43 100644 --- a/xen/arch/x86/i8259.c +++ b/xen/arch/x86/i8259.c @@ -395,12 +395,11 @@ void __init init_IRQ(void) for (irq = 0; platform_legacy_irq(irq); irq++) { struct irq_desc *desc = irq_to_desc(irq); - struct irq_cfg *cfg = desc->chip_data; desc->handler = &i8259A_irq_type; per_cpu(vector_irq, cpu)[FIRST_LEGACY_VECTOR + irq] = irq; - cfg->cpu_mask= cpumask_of_cpu(cpu); - cfg->vector = FIRST_LEGACY_VECTOR + irq; + cpumask_copy(&desc->arch.cpu_mask, cpumask_of(cpu)); + desc->arch.vector = FIRST_LEGACY_VECTOR + irq; } per_cpu(vector_irq, cpu)[FIRST_HIPRIORITY_VECTOR] = 0; |