Re: [PATCH] sparse_irq aka dyn_irq v13

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Yinghai Lu
Date: Thursday, November 13, 2008 - 1:06 pm

Ingo Molnar wrote:


in io_apic.c

struct irq_chip hpet_msi_type = {
        .name = "HPET_MSI",
        .unmask = hpet_msi_unmask,
        .mask = hpet_msi_mask,
        .ack = ack_apic_edge,
#ifdef CONFIG_SMP
        .set_affinity = hpet_msi_set_affinity,
#endif
        .retrigger = ioapic_retrigger_irq,
};

so those ack, mask, unmak, eoi field will have different function prototype..when sparseirq is enabled or not.

if you want to remove those #ifdef, we need to go over all irq_chip definition to make all those field to take struct irq_desc *desc (or **descp) instead of unsigned int irq.

actually we only need to pass desc struct instead of irq, because we can get desc->irq in case.

YH
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH] sparse_irq aka dyn_irq v13, Yinghai Lu, (Thu Nov 13, 12:01 am)
Re: [PATCH] sparse_irq aka dyn_irq v13, Ingo Molnar, (Thu Nov 13, 2:53 am)
Re: [PATCH] sparse_irq aka dyn_irq v13, Yinghai Lu, (Thu Nov 13, 1:06 pm)